Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-02-29 04:57:22 +0400
committerisaacs <i@izs.me>2012-02-29 04:57:22 +0400
commit2f4c5be5454cec6355017eebeb10306a9af682d9 (patch)
tree771829066a3849a67d3e1b71735bdaea64f8d3fa
parent317d86727e55dbefbf8f69880c1280b1578ee660 (diff)
install: Don't unbuild preemptively
-rw-r--r--lib/install.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/install.js b/lib/install.js
index add5d5aa7..55c86bace 100644
--- a/lib/install.js
+++ b/lib/install.js
@@ -368,7 +368,6 @@ function installManyTop_ (what, where, context, cb) {
if (er) return installMany(what, where, context, cb)
pkgs = pkgs.filter(function (p) {
return !p.match(/^[\._-]/)
- && (!context.explicit || names.indexOf(p) === -1)
})
asyncMap(pkgs.map(function (p) {
return path.resolve(nm, p, "package.json")
@@ -429,7 +428,7 @@ function installMany (what, where, context, cb) {
log.info(t._id, "into "+where)
})
asyncMap(targets, function (target, cb) {
- log(target._id, "installOne")
+ log.info(target._id, "installOne")
var newWrap = wrap ? wrap[target.name].dependencies || {} : null
var newContext = { family: newPrev
, ancestors: newAnc
@@ -700,8 +699,7 @@ function write (target, targetFolder, context, cb_) {
}
chain
- ( [ [ npm.commands.unbuild, [targetFolder] ]
- , [ cache.unpack, target.name, target.version, targetFolder
+ ( [ [ cache.unpack, target.name, target.version, targetFolder
, null, null, user, group ]
, [ lifecycle, target, "preinstall", targetFolder ] ]