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:
authorForrest L Norvell <forrest@npmjs.com>2014-10-02 11:15:30 +0400
committerForrest L Norvell <forrest@npmjs.com>2014-10-03 03:07:55 +0400
commit664795bb7d8da7142417b3f4ef5986db3a394071 (patch)
treeaa5fa6c639062ce5acd9fac9d6d2121cf07a0e2e /lib/cache/add-local-tarball.js
parent03f6ddc3ba3db90cc1288bfa8e7606aa76b1f3ca (diff)
log what is and isn't in flight
Diffstat (limited to 'lib/cache/add-local-tarball.js')
-rw-r--r--lib/cache/add-local-tarball.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/cache/add-local-tarball.js b/lib/cache/add-local-tarball.js
index 101bf16d1..6112ba557 100644
--- a/lib/cache/add-local-tarball.js
+++ b/lib/cache/add-local-tarball.js
@@ -87,7 +87,8 @@ function addTmpTarball (tgz, pkgData, shasum, cb) {
assert(shasum, "must have shasum by now")
cb = inflight("addTmpTarball:" + tgz, cb)
- if (!cb) return undefined
+ if (!cb) return log.verbose("addTmpTarball", tgz, "already in flight; waiting")
+ log.verbose("addTmpTarball", tgz, "not in flight; verifying")
// we already have the package info, so just move into place
if (pkgData && pkgData.name && pkgData.version) {