[gnome-software/gnome-3-38: 1/4] fwupd: Ignore errors from `fwupd_client_set_feature_flags`
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-38: 1/4] fwupd: Ignore errors from `fwupd_client_set_feature_flags`
- Date: Fri, 29 Jan 2021 16:08:20 +0000 (UTC)
commit b00570001024abc809c537bb4f346698dfe006e1
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 1a25b4146..ba25d0d83 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]