Display a message before we update the search index

Otherwise it looks as if `lein search` has locked up for minutes or is in
an infinite loop.
This commit is contained in:
Michael S. Klishin 2012-09-22 03:26:27 +04:00
parent 80fa726879
commit 14ccb65e3e

View file

@ -117,7 +117,9 @@ Also accepts a second parameter for fetching successive pages."
(System/setProperty "java.io.tmpdir" (str new-tmp))
(doseq [context contexts]
(when (refresh? (.getRepositoryUrl context) project)
(update-index context)))
(do
(println "Updating the search index. This may take a few minutes...")
(update-index context))))
;; TODO: improve error message when page isn't numeric
(search-repository query contexts (Integer. page))
(finally