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:
Matthew Leeds
2018-09-16 22:36:29 -07:00
committed by Atomic Bot
parent 3eed1f42a5
commit bd81ec7b5d

View File

@@ -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"),