mirror of https://github.com/djcb/mu.git
index: ignore .update when store is empty
This somewhat emulates the 1.4 behavior.
This commit is contained in:
parent
38bd7ab4d2
commit
bca272f258
|
@ -868,6 +868,8 @@ Server::Private::index_handler (const Parameters& params)
|
|||
Mu::Indexer::Config conf{};
|
||||
conf.cleanup = get_bool_or(params, ":cleanup");
|
||||
conf.lazy_check = get_bool_or(params, ":lazy-check");
|
||||
// ignore .noupdate with an empty store.
|
||||
conf.ignore_noupdate = store().empty();
|
||||
|
||||
indexer().stop();
|
||||
|
||||
|
|
|
@ -124,6 +124,8 @@ Mu::mu_cmd_index (Mu::Store& store, const MuConfig *opts, GError **err)
|
|||
Mu::Indexer::Config conf{};
|
||||
conf.cleanup = !opts->nocleanup;
|
||||
conf.lazy_check = opts->lazycheck;
|
||||
// ignore .noupdate with an empty store.
|
||||
conf.ignore_noupdate = store.empty();
|
||||
|
||||
install_sig_handler ();
|
||||
|
||||
|
|
Loading…
Reference in New Issue