diff options
author | isaacs <i@izs.me> | 2010-08-29 23:34:45 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-08-29 23:34:45 +0400 |
commit | 3cb1bc0c1fc23ba9f8a7b8e45e4edc7c70cfda72 (patch) | |
tree | de6650c9949f013d5ddf0cea1f33abc6162d97c8 | |
parent | 08d1fe5d708a1cbf679fcb1c371a40c3f79056f4 (diff) |
Fix #203. Use the env.GZIPBIN env instead of env.GZIPv0.1.27-12
-rw-r--r-- | doc/config.md | 2 | ||||
-rw-r--r-- | lib/cache.js | 4 | ||||
-rw-r--r-- | lib/utils/default-config.js | 2 | ||||
-rw-r--r-- | man/config.1 | 2 | ||||
-rw-r--r-- | package.json | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/doc/config.md b/doc/config.md index e143dc6e9..e9f470ea8 100644 --- a/doc/config.md +++ b/doc/config.md @@ -196,6 +196,6 @@ The name of a GNU-compatible tar program on your system. ### gzip -Default: env.GZIP or "gzip" +Default: env.GZIPBIN or "gzip" The name of a GNU-compatible gzip program on your system. diff --git a/lib/cache.js b/lib/cache.js index ac6f10e68..42dc169a2 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -211,7 +211,7 @@ function unpackTar (tarball, unpackTarget, cb) { if (er) return log.er(cb, "Could not create "+unpackTarget)(er) // cp the gzip of the tarball, pipe the stdout into tar's stdin // gzip {tarball} --decompress --stdout | tar xf - --strip-components=1 -C {unpackTarget} - pipe( spawn(npm.config.get("gzip"), ["--decompress", "--stdout", tarball]) + pipe( spawn(npm.config.get("gzipbin"), ["--decompress", "--stdout", tarball]) , spawn( npm.config.get("tar") , ["vx", "--strip-components=1", "-C", unpackTarget] ) @@ -249,7 +249,7 @@ function packTar (targetTarball, folder, cb) { if (include) args.push("-T", include) args.push(addFolder) var tar = spawn(npm.config.get("tar"), args) - , gzip = spawn(npm.config.get("gzip"), ["--stdout"]) + , gzip = spawn(npm.config.get("gzipbin"), ["--stdout"]) , errState pipe(tar, gzip, function (er) { if (errState) return diff --git a/lib/utils/default-config.js b/lib/utils/default-config.js index 17d776b1d..2f810ab31 100644 --- a/lib/utils/default-config.js +++ b/lib/utils/default-config.js @@ -15,7 +15,7 @@ module.exports = , "update-dependents" : true , "auto-deactivate" : true , "tar" : process.env.TAR || "tar" - , "gzip" : process.env.GZIP || "gzip" + , "gzipbin" : process.env.GZIPBIN || "gzip" , tag : "latest" , root : path.join(process.execPath, "..", "..", "lib", "node") , globalconfig : path.join(process.execPath, "..", "..", "etc", "npmrc") diff --git a/man/config.1 b/man/config.1 index ce08dddf2..29b846a4a 100644 --- a/man/config.1 +++ b/man/config.1 @@ -249,7 +249,7 @@ Default: env\.TAR or "tar" The name of a GNU\-compatible tar program on your system\. . .SS "gzip" -Default: env\.GZIP or "gzip" +Default: env\.GZIPBIN or "gzip" . .P The name of a GNU\-compatible gzip program on your system\. diff --git a/package.json b/package.json index 4ca8f1938..112fecc5d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name" : "npm" , "description" : "A package manager for node" -, "version" : "0.1.27-11" +, "version" : "0.1.27-12" , "homepage" : "http://npmjs.org/" , "author" : "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)" , "contributors" : |