mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-27 09:59:35 -04:00
pull: Exit early on error without aborting transaction
At this point we have not set up repo yet, so aborting would crash.
This commit is contained in:
1 parent
109698c6b0
commit
31ca19eb99
1 file changed
+2
-2
@@ -1563,13 +1563,13 @@ flatpak_dir_pull (FlatpakDir *self,
|
||||
g_autoptr(GPtrArray) subdirs_arg = NULL;
|
||||
|
||||
if (!flatpak_dir_ensure_repo (self, cancellable, error))
|
||||
goto out;
|
||||
return FALSE;
|
||||
|
||||
if (!ostree_repo_remote_get_url (self->repo,
|
||||
repository,
|
||||
&url,
|
||||
error))
|
||||
goto out;
|
||||
return FALSE;
|
||||
|
||||
if (*url == 0)
|
||||
return TRUE; /* Empty url, silently disables updates */
|
||||
|
||||
Reference in new issue
Block a user