mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
Forgot to update to canonical dir in some comments/docs.
This commit is contained in:
@@ -128,7 +128,7 @@ PackageRepository.prototype._resolve = function (resolver, logger) {
|
||||
.then(function (canonicalDir) {
|
||||
return this._resolveCache.store(canonicalDir, resolver.getPkgMeta());
|
||||
}.bind(this))
|
||||
// Resolve promise with canonical package and package meta
|
||||
// Resolve promise with canonical dir and package meta
|
||||
.then(function (dir) {
|
||||
var pkgMeta = resolver.getPkgMeta();
|
||||
logger.info('resolved', resolver.getSource() + (pkgMeta._release ? '#' + pkgMeta._release : ''));
|
||||
@@ -153,7 +153,7 @@ PackageRepository.prototype._extendLog = function (log, info) {
|
||||
};
|
||||
}
|
||||
|
||||
// Store the canonical package and its meta in each log
|
||||
// Store the canonical dir and its meta in each log
|
||||
if (info.canonicalDir) {
|
||||
log.data.canonicalDir = info.canonicalDir;
|
||||
log.data.pkgMeta = info.pkgMeta;
|
||||
|
||||
@@ -76,7 +76,7 @@ ResolveCache.prototype.retrieve = function (source, target) {
|
||||
return [];
|
||||
}
|
||||
|
||||
// Resolve with canonical package and package meta
|
||||
// Resolve with canonical dir and package meta
|
||||
canonicalDir = path.join(dir, version);
|
||||
return that._readPkgMeta(canonicalDir)
|
||||
.then(function (pkgMeta) {
|
||||
|
||||
@@ -53,7 +53,7 @@ Resolver.prototype.hasNew = function (canonicalDir, pkgMeta) {
|
||||
// Avoid reading the package meta if already given
|
||||
if (pkgMeta) {
|
||||
promise = this._hasNew(canonicalDir, pkgMeta);
|
||||
// Otherwise call _hasNew with both the package meta and the canonical package
|
||||
// Otherwise call _hasNew with both the package meta and the canonical dir
|
||||
} else {
|
||||
metaFile = path.join(canonicalDir, '.bower.json');
|
||||
promise = Q.nfcall(fs.readFile, metaFile)
|
||||
|
||||
Reference in New Issue
Block a user