[gnome-software] fwupd plugin: Don't error out when no suitable devices were found



commit 80bb505496b49ddbe31f1c2abafaf2c64098b900
Author: Kalev Lember <kalevlember gmail com>
Date:   Sun May 24 13:15:01 2015 +0200

    fwupd plugin: Don't error out when no suitable devices were found
    
    This ensures that the updates dialog keeps on showing regular package
    updates even when no devices with updatable firmware are installed.

 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 d3f0754..7134a08 100644
--- a/src/plugins/gs-plugin-fwupd.c
+++ b/src/plugins/gs-plugin-fwupd.c
@@ -415,6 +415,10 @@ gs_plugin_add_updates_historical (GsPlugin *plugin,
                                     FWUPD_ERROR,
                                     FWUPD_ERROR_NOTHING_TO_DO))
                        return TRUE;
+               if (g_error_matches (error_local,
+                                    FWUPD_ERROR,
+                                    FWUPD_ERROR_NOT_FOUND))
+                       return TRUE;
                g_set_error_literal (error,
                                     GS_PLUGIN_ERROR,
                                     GS_PLUGIN_ERROR_FAILED,


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