[gnome-software/1754-improve-the-sources-dropdown: 4/10] snap: Use GS_APP_QUIRK_BETA_SOURCE
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1754-improve-the-sources-dropdown: 4/10] snap: Use GS_APP_QUIRK_BETA_SOURCE
- Date: Wed, 3 Aug 2022 14:59:33 +0000 (UTC)
commit d7d317ceb7f74b09168eceedbdc67155d2b3994f
Author: Milan Crha <mcrha redhat com>
Date: Wed Aug 3 15:54:19 2022 +0200
snap: Use GS_APP_QUIRK_BETA_SOURCE
Set the quirk when the branch matches certain heuristic values.
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 e6b1e3c6a..486c82809 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -434,6 +434,8 @@ snap_to_app (GsPluginSnap *self, SnapdSnap *snap, const gchar *branch)
gs_app_add_quirk (app, GS_APP_QUIRK_NOT_LAUNCHABLE);
if (gs_plugin_check_distro_id (GS_PLUGIN (self), "ubuntu"))
gs_app_add_quirk (app, GS_APP_QUIRK_PROVENANCE);
+ if (branch != NULL && (g_str_has_suffix (branch, "/beta") || g_str_has_suffix (branch, "/edge")))
+ gs_app_add_quirk (app, GS_APP_QUIRK_BETA_SOURCE);
return g_steal_pointer (&app);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]