From 14ccb65e3e8b479810dbac196f621e6f8252ad52 Mon Sep 17 00:00:00 2001 From: "Michael S. Klishin" Date: Sat, 22 Sep 2012 03:26:27 +0400 Subject: [PATCH] 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. --- src/leiningen/search.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/leiningen/search.clj b/src/leiningen/search.clj index 00b8b968..b955db92 100644 --- a/src/leiningen/search.clj +++ b/src/leiningen/search.clj @@ -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