Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix #203. Use the env.GZIPBIN env instead of env.GZIP

  • Loading branch information...
commit 3cb1bc0c1fc23ba9f8a7b8e45e4edc7c70cfda72 1 parent 08d1fe5
@isaacs isaacs authored
View
2  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.
View
4 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
View
2  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")
View
2  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\.
View
2  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" :
Please sign in to comment.
Something went wrong with that request. Please try again.