From b19dabefba1b6038bb1bf0bbb0ad893e6d2f4c30 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Mon, 8 Feb 2010 21:22:30 +0200 Subject: [PATCH] * mu-cmd-index: update for --empty => --rebuild --- src/mu-cmd-index.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/mu-cmd-index.c b/src/mu-cmd-index.c index 169fe92e..3e56c616 100644 --- a/src/mu-cmd-index.c +++ b/src/mu-cmd-index.c @@ -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); } @@ -181,7 +181,6 @@ mu_cmd_cleanup (MuConfigOptions *opts) g_warning ("Cleanup failed"); return FALSE; } - g_message ("Cleaning up removed messages from %s", opts->xpath);