From a27de64071231f74bcd27eb7b69f3492c7e830c9 Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 1 Mar 2012 08:29:47 -0800 Subject: fix overly agressive re-use of installed pkgs --- lib/install.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/install.js b/lib/install.js index c9cb00c4f..19d03d5a6 100644 --- a/lib/install.js +++ b/lib/install.js @@ -494,12 +494,7 @@ function targetResolver (where, context, deps) { if (context.family[what]) { if (wrap && wrap[what].version == context.family[what]) { - log.verbose("using existing "+what+" (matches shrinkwrap)") - return cb(null, []) - } - - if (!wrap && semver.satisfies(context.family[what], deps[what] || "")) { - log.verbose("using existing "+what+" (no shrinkwrap)") + log.verbose(what, "using existing (matches shrinkwrap)") return cb(null, []) } } -- cgit v1.2.3