diff options
author | isaacs <i@izs.me> | 2010-12-10 01:06:49 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-12-10 01:06:49 +0300 |
commit | 6952d1f1e6654a1f7acf33eace85814795a3cfcc (patch) | |
tree | 8e1ff06f3fa55e8dfcd56e6ebbb5c45813ad4c53 | |
parent | 2ee02f7d51ed66264938793006d19d55f7b1096e (diff) |
Can't write to a ReadStream. Derp.
-rw-r--r-- | lib/cache.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cache.js b/lib/cache.js index e056e7e79..e2854799e 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -242,7 +242,7 @@ function addLocalTarball (p, cb) { mkdir(path.dirname(tmp), function (er) { if (er) return cb(er) var from = fs.createReadStream(p) - , to = fs.createReadStream(tmp) + , to = fs.createWriteStream(tmp) , errState = null function errHandler (er) { if (errState) return |