mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-27 09:59:35 -04:00
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:
1 parent
e8599bb869
commit
1e7bd752bf
1 file changed
+2
-9
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user