mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-13 12:41:01 -04:00
Fix test crash introduced with error message
This commit is contained in:
@@ -478,13 +478,15 @@ flatpak_transaction_add_ref (FlatpakTransaction *self,
|
||||
}
|
||||
}
|
||||
|
||||
if (metadata == NULL && remote != NULL &&
|
||||
flatpak_dir_fetch_ref_cache (self->dir, remote, ref, NULL, NULL, &remote_metadata, NULL, &local_error))
|
||||
metadata = remote_metadata;
|
||||
else
|
||||
if (metadata == NULL && remote != NULL)
|
||||
{
|
||||
g_print ("Warning: Can't find dependencies: %s\n", local_error->message);
|
||||
g_clear_error (&local_error);
|
||||
if (flatpak_dir_fetch_ref_cache (self->dir, remote, ref, NULL, NULL, &remote_metadata, NULL, &local_error))
|
||||
metadata = remote_metadata;
|
||||
else
|
||||
{
|
||||
g_print ("Warning: Can't find dependencies: %s\n", local_error->message);
|
||||
g_clear_error (&local_error);
|
||||
}
|
||||
}
|
||||
|
||||
if (metadata)
|
||||
|
||||
Reference in New Issue
Block a user