* mu_store_needs_upgrade --> mu_store_versions_match
This commit is contained in:
@ -234,9 +234,9 @@ get_query_obj (MuStore *store, GError **err)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (mu_store_needs_upgrade (store)) {
|
||||
g_set_error (err, MU_ERROR_DOMAIN, MU_ERROR_XAPIAN_NOT_UP_TO_DATE,
|
||||
"the database is not up-to-date");
|
||||
if (!mu_store_versions_match (store)) {
|
||||
g_set_error (err, MU_ERROR_DOMAIN, MU_ERROR_XAPIAN_VERSION_MISMATCH,
|
||||
"the database needs a rebuild");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@ -203,7 +203,7 @@ database_version_check_and_update (MuStore *store, MuConfig *opts,
|
||||
return mu_store_clear (store, err);
|
||||
}
|
||||
|
||||
if (!mu_store_needs_upgrade (store))
|
||||
if (mu_store_versions_match (store))
|
||||
return TRUE; /* ok, nothing to do */
|
||||
|
||||
/* ok, database is not up to date */
|
||||
|
||||
4
mu/mu.cc
4
mu/mu.cc
@ -59,8 +59,8 @@ handle_error (MuConfig *conf, MuError merr, GError **err)
|
||||
g_printerr ("maybe mu is already running?\n");
|
||||
break;
|
||||
case MU_ERROR_XAPIAN_CORRUPTION:
|
||||
case MU_ERROR_XAPIAN_NOT_UP_TO_DATE:
|
||||
g_printerr ("database needs update; "
|
||||
case MU_ERROR_XAPIAN_VERSION_MISMATCH:
|
||||
g_printerr ("database needs a rebuild; "
|
||||
"try 'mu index --rebuild'\n");
|
||||
break;
|
||||
case MU_ERROR_XAPIAN_IS_EMPTY:
|
||||
|
||||
Reference in New Issue
Block a user