Fix bug introduced when name is coerced to the registry name.

This commit is contained in:
André Cruz
2013-07-10 20:11:19 +01:00
parent bb4f09316a
commit 33d0f1fd94

View File

@@ -29,6 +29,7 @@ Manager.prototype.configure = function (setup) {
// Targets
this._targets = setup.targets || [];
this._targets.forEach(function (decEndpoint) {
decEndpoint.initialName = decEndpoint.name;
decEndpoint.dependants = mout.object.values(decEndpoint.dependants);
targetsHash[decEndpoint.name] = true;
});
@@ -264,8 +265,7 @@ Manager.prototype._onFetchSuccess = function (decEndpoint, canonicalDir, pkgMeta
var resolved;
var index;
var incompatibles;
var initialName = decEndpoint.name;
var fetching = this._fetching[initialName];
var fetching = this._fetching[decEndpoint.initialName];
// Remove from being fetched list
mout.array.remove(fetching, decEndpoint);