Commit f0a7d0eb authored by Christian Hergert's avatar Christian Hergert
Browse files

flatpak: propagate task errors in bootstrap

We can get into an infinite (albeit async via user-flow) state if the
downloads fail and pipeline reloads.

This only invalidates the pipeline if the task was successful.

Related #1430
parent 484f223c
Pipeline #271945 passed with stages
in 62 minutes and 34 seconds
...@@ -641,6 +641,8 @@ gbp_flatpak_runtime_provider_bootstrap_install_cb (GObject *object, ...@@ -641,6 +641,8 @@ gbp_flatpak_runtime_provider_bootstrap_install_cb (GObject *object,
if (!ide_task_had_error (task) && state->count == 0) if (!ide_task_had_error (task) && state->count == 0)
gbp_flatpak_runtime_provider_bootstrap_complete (task); gbp_flatpak_runtime_provider_bootstrap_complete (task);
else if (!ide_task_had_error (task))
ide_task_return_error (task, g_steal_pointer (&error));
} }
static gchar * static gchar *
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment