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>2013-07-27 18:49:28 +0400
committerisaacs <i@izs.me>2013-07-27 18:49:28 +0400
commit081f43bac28d082bc58b77ab925fe323416861a2 (patch)
tree6d9ea8f32fa8f0583c3fea62d7a7e3631c502a8e
parent5cff9b57aca7bdedef31cfdcaa661e61a172735c (diff)
cache: Never be strict (for now)
-rw-r--r--lib/cache.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/cache.js b/lib/cache.js
index 2d2148b1a..3739968f6 100644
--- a/lib/cache.js
+++ b/lib/cache.js
@@ -1107,9 +1107,7 @@ function addLocalDirectory (p, name, shasum, cb) {
// tar it to the proper place, and add the cache tar
if (p.indexOf(npm.cache) === 0) return cb(new Error(
"Adding a cache directory to the cache will make the world implode."))
- var strict = p.indexOf(npm.tmp) !== 0
- && p.indexOf(npm.cache) !== 0
- readJson(path.join(p, "package.json"), strict, function (er, data) {
+ readJson(path.join(p, "package.json"), false, function (er, data) {
er = needName(er, data)
er = needVersion(er, data)
if (er) return cb(er)
@@ -1124,7 +1122,7 @@ function addLocalDirectory (p, name, shasum, cb) {
getCacheStat(function (er, cs) {
mkdir(path.dirname(tgz), function (er, made) {
if (er) return cb(er)
- tar.pack(tgz, p, data, strict, function (er) {
+ tar.pack(tgz, p, data, false, function (er) {
if (er) {
log.error( "addLocalDirectory", "Could not pack %j to %j"
, p, tgz )