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-03-27 19:25:59 +0400
committerisaacs <i@izs.me>2012-03-27 19:25:59 +0400
commit15d2c6930352e2f95d406321e35e342c501e0adc (patch)
tree4e634cfbbed4dfb7820d9dd4dbed1822d42ee36f
parent48d9586ac77a3615e0aa8c6b489689c0d79d8e14 (diff)
fix newName is not defined
-rw-r--r--lib/cache.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cache.js b/lib/cache.js
index b0952fa1d..34a59b249 100644
--- a/lib/cache.js
+++ b/lib/cache.js
@@ -757,7 +757,7 @@ function addTmpTarball_ (tgz, name, uid, gid, cb) {
if (er) {
return cb(er)
}
- addLocalDirectory(newName, name, cb)
+ addLocalDirectory(path.resolve(contents, "package"), name, cb)
})
}