Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-08-24 20:13:43 +0400
committerisaacs <i@izs.me>2011-08-24 20:13:43 +0400
commitc05a85e799b8dedf3930699408ba1957292fef8c (patch)
tree41760a91196b8daffeae7dab564c828c6f52eee5
parente5012a6f3f3532818464ddea15618fa078fa31c8 (diff)
isRetry needs to be passed to cacheAddPublish
-rw-r--r--lib/publish.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/publish.js b/lib/publish.js
index 8e247c603..7a47b73c1 100644
--- a/lib/publish.js
+++ b/lib/publish.js
@@ -32,15 +32,15 @@ function publish (args, isRetry, cb) {
// if it's a local folder, then run the prepublish there, first.
readJson(path.resolve(arg, "package.json"), function (er, data) {
// error is ok. could be publishing a url or tarball
- if (er) return cacheAddPublish(arg, false, cb)
+ if (er) return cacheAddPublish(arg, false, isRetry, cb)
lifecycle(data, "prepublish", arg, function (er) {
if (er) return cb(er)
- cacheAddPublish(arg, true, cb)
+ cacheAddPublish(arg, true, isRetry, cb)
})
})
}
-function cacheAddPublish (arg, didPre, cb) {
+function cacheAddPublish (arg, didPre, isRetry, cb) {
npm.commands.cache.add(arg, function (er, data) {
if (er) return cb(er)
log.silly(data, "publish")