* mu_store_needs_upgrade --> mu_store_versions_match

This commit is contained in:
djcb
2013-01-06 15:53:42 +02:00
parent e8f4f5976d
commit f5f8d6de70
9 changed files with 33 additions and 28 deletions

View File

@ -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;
}