[gnome-software/flatpak-permissions] updates: Don't auto-install with new permissions
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/flatpak-permissions] updates: Don't auto-install with new permissions
- Date: Wed, 26 Dec 2018 22:37:24 +0000 (UTC)
commit 0210003d9416abb1c7ebd9326887dc787e5886c0
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Dec 26 17:36:01 2018 -0500
updates: Don't auto-install with new permissions
If an update has new permissions, don't install it
automatically in the background. The user should make
an explicit decision on it.
This needs testing. I have not verified that the quirk
is set at this point.
src/gs-update-monitor.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/gs-update-monitor.c b/src/gs-update-monitor.c
index fd1bbd6f..892f7135 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -316,6 +316,8 @@ _should_auto_update (GsApp *app)
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;
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]