[gnome-software] snap: Stop snaps from being automatically updated



commit c153b489c6b9623cd987e2a3067b163da9a3f5a2
Author: Robert Ancell <robert ancell canonical com>
Date:   Mon Feb 10 12:42:52 2020 +1300

    snap: Stop snaps from being automatically updated
    
    The snap daemon does this instead.

 plugins/snap/gs-plugin-snap.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index 8a055223..0633516e 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -326,6 +326,7 @@ snap_to_app (GsPlugin *plugin, SnapdSnap *snap)
        }
 
        gs_app_set_management_plugin (app, "snap");
+       gs_app_add_quirk (app, GS_APP_QUIRK_DO_NOT_AUTO_UPDATE);
        if (gs_app_get_kind (app) != AS_APP_KIND_DESKTOP)
                gs_app_add_quirk (app, GS_APP_QUIRK_NOT_LAUNCHABLE);
        if (gs_plugin_check_distro_id (plugin, "ubuntu"))
@@ -950,6 +951,7 @@ gs_plugin_refine_app (GsPlugin *plugin,
                }
        } else
                gs_app_set_state (app, AS_APP_STATE_AVAILABLE);
+       gs_app_add_quirk (app, GS_APP_QUIRK_DO_NOT_AUTO_UPDATE);
 
        /* use store information for basic metadata over local information */
        snap = store_snap != NULL ? store_snap : local_snap;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]