diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2021-11-11 21:58:23 +0200 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2021-11-13 08:50:19 +0200 |
| commit | bca272f2581be8556d57f8dc262f82060f338642 (patch) | |
| tree | 53eb8ca90a2d915ac74fcd118bf1f00b0ba50852 | |
| parent | 38bd7ab4d2c3de94da1357cdb7437c62b84aa292 (diff) | |
index: ignore .update when store is empty
This somewhat emulates the 1.4 behavior.
| -rw-r--r-- | lib/mu-server.cc | 2 | ||||
| -rw-r--r-- | mu/mu-cmd-index.cc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/mu-server.cc b/lib/mu-server.cc index 08546d2..c472ea0 100644 --- a/lib/mu-server.cc +++ b/lib/mu-server.cc @@ -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(); diff --git a/mu/mu-cmd-index.cc b/mu/mu-cmd-index.cc index 49429fe..82f6b04 100644 --- a/mu/mu-cmd-index.cc +++ b/mu/mu-cmd-index.cc @@ -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 (); |
