[gnome-software] fwupd: Fix critical warning with new versions of the daemon
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] fwupd: Fix critical warning with new versions of the daemon
- Date: Sat, 5 Aug 2017 13:16:54 +0000 (UTC)
commit 0f891c3f048598697118f030bed85b5184e76d2e
Author: Richard Hughes <richard hughsie com>
Date: Sat Aug 5 13:48:16 2017 +0100
fwupd: Fix critical warning with new versions of the daemon
plugins/fwupd/gs-plugin-fwupd.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/fwupd/gs-plugin-fwupd.c b/plugins/fwupd/gs-plugin-fwupd.c
index 9feadba..108b48b 100644
--- a/plugins/fwupd/gs-plugin-fwupd.c
+++ b/plugins/fwupd/gs-plugin-fwupd.c
@@ -243,6 +243,10 @@ gs_plugin_fwupd_setup_remote (GsPlugin *plugin, FwupdRemote *remote, GError **er
GsPluginData *priv = gs_plugin_get_data (plugin);
g_autofree gchar *filename_asc = NULL;
+ /* we do not need to refresh local remotes */
+ if (fwupd_remote_get_kind (remote) != FWUPD_REMOTE_KIND_DOWNLOAD)
+ return TRUE;
+
/* find the name of the signature file in the cache */
filename_asc = gs_utils_get_cache_filename ("firmware",
fwupd_remote_get_filename_asc (remote),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]