Don't handle already-installed error too early

Leave this to the callers which may well print out a
different message depending on whether the update did
anything or not.
This commit is contained in:
Matthias Clasen committed 2016-08-04 18:41:01 -04:00
1 parent e8599bb869
commit 1e7bd752bf
1 file changed
+2 -9
+2 -9
View File
@@ -2928,15 +2928,8 @@ flatpak_dir_deploy_update (FlatpakDir *self,
checksum_or_latest,
opt_subpaths ? opt_subpaths : old_subpaths,
old_deploy_data,
cancellable, &my_error))
{
if (g_error_matches (my_error, FLATPAK_ERROR,
FLATPAK_ERROR_ALREADY_INSTALLED))
return TRUE;
g_propagate_error (error, my_error);
return FALSE;
}
cancellable, error))
return FALSE;
if (!flatpak_dir_undeploy (self, ref, old_active,
FALSE,