Permalink
Browse files

update to work on busybox OS

  • Loading branch information...
1 parent 467c69b commit 32b9ae50ca7e9755cb7cbd4620b1a7505da4d37a @isaacs isaacs committed Dec 9, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/cache.js
View
@@ -347,11 +347,11 @@ function unpackTar (tarball, unpackTarget, cb) {
mkdir(unpackTarget, function (er) {
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}
+ // gzip {tarball} -d --stdout \
+ // | tar xf - -C {unpackTarget}
var tgzReader = fs.createReadStream(tarball)
, gzcat = spawn( npm.config.get("gzipbin")
- , ["--decompress", "-"] )
+ , ["-d", "-"] )
sys.pump(tgzReader, gzcat.stdin)
pipe( gzcat
, spawn( npm.config.get("tar")

0 comments on commit 32b9ae5

Please sign in to comment.