From 33d0f1fd944481c5b61ae0cb90e7d52b642f5d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Cruz?= Date: Wed, 10 Jul 2013 20:11:19 +0100 Subject: [PATCH] Fix bug introduced when name is coerced to the registry name. --- lib/core/Manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/Manager.js b/lib/core/Manager.js index 370a127e..08e92eb9 100644 --- a/lib/core/Manager.js +++ b/lib/core/Manager.js @@ -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);