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-07-19 20:00:27 +0400
committerisaacs <i@izs.me>2011-07-19 20:00:27 +0400
commit066c3565a91a95ddda0b7bf1f1af96bda180f0d8 (patch)
tree907090440b0c97878ecabd75d452b0107549d6f8
parent695c8d6e2cb3a2cf339dd83b71eb08e43c70fe69 (diff)
Print a warning when the search index builds for the first time
-rw-r--r--lib/utils/npm-registry-client/get.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/utils/npm-registry-client/get.js b/lib/utils/npm-registry-client/get.js
index de3677949..a99307b95 100644
--- a/lib/utils/npm-registry-client/get.js
+++ b/lib/utils/npm-registry-client/get.js
@@ -76,6 +76,10 @@ function requestAll_ (c, data, cb) {
cb = function () {}
}
+ if (c === 0) {
+ log.warn("Building the index for the first time, please be patient")
+ }
+
var uri = "/-/all/since?startkey=" + c
, cache = path.join(npm.cache, "-/all", ".cache.json")
GET(uri, function (er, updates, _, res) {