[gnome-software/flatpak-permissions: 4/4] updates: Don't auto-install with new permissions



commit 43ce72d09d2c45ec330ca7be638fdb00f8528dcc
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.

 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..38c809d8 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]