[gnome-software: 1/2] fwupd: Ignore errors from `fwupd_client_set_feature_flags`




commit 8a895e64e4205cd6c597025338383977a2cfd3ae
Author: Mario Limonciello <mario limonciello dell com>
Date:   Thu Dec 3 15:46:27 2020 -0600

    fwupd: Ignore errors from `fwupd_client_set_feature_flags`
    
    This will allow using a newer library but an older daemon.

 plugins/fwupd/gs-plugin-fwupd.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/plugins/fwupd/gs-plugin-fwupd.c b/plugins/fwupd/gs-plugin-fwupd.c
index 49b8b964..d607fe1d 100644
--- a/plugins/fwupd/gs-plugin-fwupd.c
+++ b/plugins/fwupd/gs-plugin-fwupd.c
@@ -214,14 +214,13 @@ gs_plugin_setup (GsPlugin *plugin, GCancellable *cancellable, GError **error)
        g_autoptr(SoupSession) soup_session = NULL;
 
 #if FWUPD_CHECK_VERSION(1,4,5)
+       g_autoptr(GError) error_local = NULL;
        /* send our implemented feature set */
        if (!fwupd_client_set_feature_flags (priv->client,
                                             FWUPD_FEATURE_FLAG_UPDATE_ACTION |
                                             FWUPD_FEATURE_FLAG_DETACH_ACTION,
-                                            cancellable, error)) {
-               g_prefix_error (error, "Failed to set front-end features: ");
-               return FALSE;
-       }
+                                            cancellable, &error_local))
+               g_debug ("Failed to set front-end features: %s", error_local->message);
 
        /* we know the runtime daemon version now */
        fwupd_client_set_user_agent_for_package (priv->client, PACKAGE_NAME, PACKAGE_VERSION);


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