function getClbk( idx ) {
		var pkg = entries[ idx ].pkg;
		var k = idx + 1;
		return onDeps;

		/**
		* Callback invoked upon resolving dependencies.
		*
		* @private
		* @param {(Error|null)} error - error object
		* @param {ObjectArray} res - results
		* @returns {void}
		*/
		function onDeps( error, res ) {
			if ( errFLG ) {
				return;
			}
			if ( error ) {
				debug( 'Encountered an error when resolving package dependencies: %s (%d of %d). Error: %s', pkg, k, len, error.message );
				errFLG = true;
				return clbk( error );
			}
			debug( 'Successfully resolved package dependencies: %s (%d of %d).', pkg, k, len );

			res = transform( res );
			results[ idx ].files = append( results[ idx ].files, res.files );
			results[ idx ].deps = append( results[ idx ].deps, res.deps );

			count += 1;
			debug( 'Resolved %d of %d packages.', count, len );
			if ( count === len ) {
				return clbk( null, results );
			}
		}
	}
Returns a callback to be invoked upon resolving package dependencies.

@private
@param {NonNegativeInteger} idx - index
@returns {Callback} callback