mirror of https://github.com/djcb/mu.git
* mu-cmd-index: update for --empty => --rebuild
This commit is contained in:
parent
c141d9436c
commit
b19dabefba
|
@ -36,9 +36,9 @@ static gboolean MU_CAUGHT_SIGNAL;
|
|||
static void
|
||||
update_warning (void)
|
||||
{
|
||||
g_warning ("Note: the database needs to be updated to version %s\n",
|
||||
g_warning ("Note: the database needs to be upgraded to version %s\n",
|
||||
MU_XAPIAN_DB_VERSION);
|
||||
g_warning ("please run 'mu index --empty' (see the manpage)\n");
|
||||
g_warning ("Please run 'mu index --rebuild' (see the manpage)\n");
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -131,9 +131,9 @@ database_version_check_and_update (MuConfigOptions *opts)
|
|||
return TRUE;
|
||||
|
||||
/* we empty the database before doing anything */
|
||||
if (opts->empty) {
|
||||
if (opts->rebuild) {
|
||||
opts->reindex = TRUE;
|
||||
g_message ("Emptying database %s", opts->xpath);
|
||||
g_message ("Clearing database %s", opts->xpath);
|
||||
return mu_util_xapian_clear_database (opts->xpath);
|
||||
}
|
||||
|
||||
|
@ -182,7 +182,6 @@ mu_cmd_cleanup (MuConfigOptions *opts)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
g_message ("Cleaning up removed messages from %s",
|
||||
opts->xpath);
|
||||
rv = run_cleanup (midx, &stats, opts->quiet);
|
||||
|
|
Loading…
Reference in New Issue