[gnome-software] fwupd: Ignore the NOT_SUPPORTED error code when getting the upgrade list
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] fwupd: Ignore the NOT_SUPPORTED error code when getting the upgrade list
- Date: Thu, 9 Aug 2018 12:57:07 +0000 (UTC)
commit 9a752bd8a647288f2c510188acf1355a26b5488f
Author: Richard Hughes <richard hughsie com>
Date: Thu Aug 9 13:45:12 2018 +0100
fwupd: Ignore the NOT_SUPPORTED error code when getting the upgrade list
Devices do not have to be upgradable even if they are supported, for instance
if a device is busy writing to other hardware it may not be upgradable itself.
plugins/fwupd/gs-plugin-fwupd.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/plugins/fwupd/gs-plugin-fwupd.c b/plugins/fwupd/gs-plugin-fwupd.c
index 177548b4..968c516d 100644
--- a/plugins/fwupd/gs-plugin-fwupd.c
+++ b/plugins/fwupd/gs-plugin-fwupd.c
@@ -567,6 +567,12 @@ gs_plugin_add_updates (GsPlugin *plugin,
g_debug ("no updates for %s", fwupd_device_get_id (dev));
continue;
}
+ if (g_error_matches (error_local2,
+ FWUPD_ERROR,
+ FWUPD_ERROR_NOT_SUPPORTED)) {
+ g_debug ("not supported for %s", fwupd_device_get_id (dev));
+ continue;
+ }
g_propagate_error (error, g_steal_pointer (&error_local2));
gs_plugin_fwupd_error_convert (error);
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]