mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-18 21:55:22 -04:00
create-usb: Don't leave a GError set
This commit avoids passing the error pointer to flatpak_dir_get_deploy_data() in add_related() because we're not treating the error as fatal. Otherwise the already-set error pointer can get passed to flatpak_dir_update_summary() causing libostree to hit an assertion failure when it checks (error == NULL || *error == NULL) in _ostree_repo_lock_push(). Closes: #2110 Approved by: alexlarsson
This commit is contained in:
committed by
Atomic Bot
parent
3eed1f42a5
commit
bd81ec7b5d
@@ -146,7 +146,7 @@ add_related (GHashTable *all_refs,
|
||||
|
||||
g_assert (ext->ref);
|
||||
|
||||
ext_deploy_data = flatpak_dir_get_deploy_data (dir, ext->ref, cancellable, error);
|
||||
ext_deploy_data = flatpak_dir_get_deploy_data (dir, ext->ref, cancellable, NULL);
|
||||
if (ext_deploy_data == NULL)
|
||||
{
|
||||
g_printerr (_("Warning: Omitting related ref ‘%s’ because it is not installed.\n"),
|
||||
|
||||
Reference in New Issue
Block a user