[gnome-software] trivial: Actually disable the plugin if setup failed



commit f2e6f40a88434a7bfbc4d56382a14ab5305114a9
Author: Richard Hughes <richard hughsie com>
Date:   Fri Jul 7 14:39:34 2017 +0100

    trivial: Actually disable the plugin if setup failed

 lib/gs-plugin-loader.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index e842891..29376a6 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -2539,6 +2539,8 @@ gs_plugin_loader_setup (GsPluginLoader *plugin_loader,
 
        /* run setup */
        gs_plugin_job_set_action (helper->plugin_job, GS_PLUGIN_ACTION_SETUP);
+       gs_plugin_job_set_failure_flags (helper->plugin_job,
+                                        GS_PLUGIN_FAILURE_FLAGS_FATAL_ANY);
        helper->function_name = "gs_plugin_setup";
        for (i = 0; i < priv->plugins->len; i++) {
                g_autoptr(GError) error_local = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]