Skip to content

Commit

Permalink
flatpak-transaction: Squash error propagation and fix return value
Browse files Browse the repository at this point in the history
It doesn’t look like this error path is taken very often. Spotted while
reading through the code.

This function is opportunistically looking for dependencies, so a
failure in one remote shouldn’t make the whole operation fail.

Signed-off-by: Philip Withnall <[email protected]>
  • Loading branch information
pwithnall authored and alexlarsson committed Jun 16, 2021
1 parent f2b4edc commit a7af60f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/flatpak-transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -2199,8 +2199,8 @@ search_for_dependency (FlatpakTransaction *self,
state = flatpak_transaction_ensure_remote_state (self, FLATPAK_TRANSACTION_OPERATION_INSTALL, remote, NULL, &local_error);
if (state == NULL)
{
g_debug ("Can't get state for remote %s: %s", remote, local_error->message);
return FALSE;
g_debug ("Can't get state for remote %s, ignoring: %s", remote, local_error->message);
continue;
}

if (flatpak_remote_state_lookup_ref (state, flatpak_decomposed_get_ref (runtime_ref), NULL, NULL, NULL, NULL, NULL))
Expand Down

0 comments on commit a7af60f

Please sign in to comment.