Forgot to update to canonical dir in some comments/docs.

This commit is contained in:
André Cruz
2013-06-22 17:15:06 +01:00
parent b82a2ee735
commit 23e560b638
8 changed files with 26 additions and 26 deletions

View File

@@ -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;

View File

@@ -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) {

View File

@@ -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)