diff options
author | isaacs <i@izs.me> | 2012-01-27 13:12:07 -0800 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-01-27 13:12:07 -0800 |
commit | f98999cc166918807aa8e06c26c5a15e4e353df5 (patch) | |
tree | 50763b04591094487405a3431e2983e384502d90 /deps/npm/lib | |
parent | ff0f0aeb401765646fefd9bbdc0f2a68d1ad342c (diff) | |
download | node-f98999cc166918807aa8e06c26c5a15e4e353df5.tar.gz |
Properly update npm to 1.1.0-3
Thanks @mscdex for spotting this.
Diffstat (limited to 'deps/npm/lib')
-rw-r--r-- | deps/npm/lib/install.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/deps/npm/lib/install.js b/deps/npm/lib/install.js index 1fb6dc30c..211a6612e 100644 --- a/deps/npm/lib/install.js +++ b/deps/npm/lib/install.js @@ -75,12 +75,15 @@ function install (args, cb_) { output = output || require("./utils/output.js") var tree = treeify(installed) - , pretty = prettify(tree, installed) + , pretty = prettify(tree, installed).trim() - output.write(pretty, function (er) { + if (pretty) output.write(pretty, afterWrite) + else afterWrite() + + function afterWrite (er) { if (er) return cb_(er) save(where, installed, tree, pretty, cb_) - }) + } } // the /path/to/node_modules/.. |