* 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

@ -118,17 +118,12 @@ mu_store_version (const MuStore *store)
gboolean
mu_store_needs_upgrade (const MuStore *store)
mu_store_versions_match (const MuStore *store)
{
g_return_val_if_fail (store, TRUE);
MU_WRITE_LOG ("'%s' '%s'\n", mu_store_version(store), MU_STORE_SCHEMA_VERSION);
if (g_strcmp0 (mu_store_version (store),
MU_STORE_SCHEMA_VERSION) == 0)
return FALSE;
else
return TRUE;
return g_strcmp0 (mu_store_version (store),
MU_STORE_SCHEMA_VERSION) == 0;
}