[gnome-software] fwupd: Use new GS_APP_QUIRK_DO_NOT_AUTO_UPDATE
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] fwupd: Use new GS_APP_QUIRK_DO_NOT_AUTO_UPDATE
- Date: Mon, 10 Feb 2020 10:48:27 +0000 (UTC)
commit 50bd29d66e900c5e55f80656f8761e68bcc12bbe
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Feb 10 12:37:13 2020 +1300
fwupd: Use new GS_APP_QUIRK_DO_NOT_AUTO_UPDATE
plugins/fwupd/gs-plugin-fwupd.c | 2 ++
src/gs-update-monitor.c | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/fwupd/gs-plugin-fwupd.c b/plugins/fwupd/gs-plugin-fwupd.c
index 791be8f8..a5e2671c 100644
--- a/plugins/fwupd/gs-plugin-fwupd.c
+++ b/plugins/fwupd/gs-plugin-fwupd.c
@@ -280,6 +280,7 @@ gs_plugin_fwupd_new_app_from_device (GsPlugin *plugin, FwupdDevice *dev)
gs_app_set_kind (app, AS_APP_KIND_FIRMWARE);
gs_app_set_bundle_kind (app, AS_BUNDLE_KIND_CABINET);
gs_app_add_quirk (app, GS_APP_QUIRK_NOT_LAUNCHABLE);
+ gs_app_add_quirk (app, GS_APP_QUIRK_DO_NOT_AUTO_UPDATE);
gs_app_set_management_plugin (app, "fwupd");
gs_app_add_category (app, "System");
gs_fwupd_app_set_device_id (app, fwupd_device_get_id (dev));
@@ -326,6 +327,7 @@ gs_plugin_fwupd_new_app_from_device_raw (GsPlugin *plugin, FwupdDevice *device)
gs_app_set_scope (app, AS_APP_SCOPE_SYSTEM);
gs_app_set_state (app, AS_APP_STATE_INSTALLED);
gs_app_add_quirk (app, GS_APP_QUIRK_NOT_LAUNCHABLE);
+ gs_app_add_quirk (app, GS_APP_QUIRK_DO_NOT_AUTO_UPDATE);
gs_app_set_version (app, fwupd_device_get_version (device));
gs_app_set_name (app, GS_APP_QUALITY_LOWEST, fwupd_device_get_name (device));
gs_app_set_summary (app, GS_APP_QUALITY_LOWEST, fwupd_device_get_summary (device));
diff --git a/src/gs-update-monitor.c b/src/gs-update-monitor.c
index 4a9ee74c..9ffa867a 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -325,8 +325,6 @@ _should_auto_update (GsApp *app)
{
if (gs_app_get_state (app) != AS_APP_STATE_UPDATABLE_LIVE)
return FALSE;
- if (gs_app_get_kind (app) == AS_APP_KIND_FIRMWARE)
- return FALSE;
if (gs_app_has_quirk (app, GS_APP_QUIRK_NEW_PERMISSIONS))
return FALSE;
if (gs_app_has_quirk (app, GS_APP_QUIRK_DO_NOT_AUTO_UPDATE))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]