[gnome-software] snap: Set verified developer flag



commit d1c0672ca9de12601909ff60d3d11673dcdce3ad
Author: Robert Ancell <robert ancell canonical com>
Date:   Tue Jul 10 11:48:04 2018 +0200

    snap: Set verified developer flag

 meson.build                   | 2 +-
 plugins/snap/gs-plugin-snap.c | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 8ea92f84..dcf42af6 100644
--- a/meson.build
+++ b/meson.build
@@ -167,7 +167,7 @@ if get_option('gudev')
 endif
 
 if get_option('snap')
-  snap = dependency('snapd-glib', version : '>= 1.41')
+  snap = dependency('snapd-glib', version : '>= 1.42')
 endif
 
 gnome = import('gnome')
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index 6f3c4de8..0a6d85bc 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -817,6 +817,8 @@ gs_plugin_refine_app (GsPlugin *plugin,
        if (developer_name == NULL)
                developer_name = snapd_snap_get_publisher_username (snap);
        gs_app_set_developer_name (app, developer_name);
+       if (snapd_snap_get_publisher_validation (snap) == SNAPD_PUBLISHER_VALIDATION_VERIFIED)
+               gs_app_add_quirk (app, AS_APP_QUIRK_DEVELOPER_VERIFIED);
 
        snap = local_snap != NULL ? local_snap : store_snap;
        gs_app_set_version (app, snapd_snap_get_version (snap));


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