[gnome-software/wip/hughsie/fwupd] Do not try to handle package installs



commit a1a3558ee7eae62a32195a1ace5c0d950121c96c
Author: Richard Hughes <richard hughsie com>
Date:   Mon Mar 16 09:33:18 2015 +0000

    Do not try to handle package installs

 src/plugins/gs-plugin-fwupd.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-fwupd.c b/src/plugins/gs-plugin-fwupd.c
index f85e6f9..0612af8 100644
--- a/src/plugins/gs-plugin-fwupd.c
+++ b/src/plugins/gs-plugin-fwupd.c
@@ -574,6 +574,10 @@ gs_plugin_app_install (GsPlugin *plugin,
 {
        const gchar *filename;
 
+       /* only process this app if was created by this plugin */
+       if (g_strcmp0 (gs_app_get_management_plugin (app), "fwupd") != 0)
+               return TRUE;
+
        filename = gs_app_get_source_id_default (app);
        if (filename == NULL) {
                g_set_error (error,


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