[gnome-software/1754-improve-the-sources-dropdown: 3/10] snap: Use GS_APP_QUIRK_DEVELOPMENT_SOURCE
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1754-improve-the-sources-dropdown: 3/10] snap: Use GS_APP_QUIRK_DEVELOPMENT_SOURCE
- Date: Thu, 4 Aug 2022 14:55:39 +0000 (UTC)
commit 4b22e20613e5d352d14ce116c0ab7c13bed6498e
Author: Milan Crha <mcrha redhat com>
Date: Wed Aug 3 15:54:19 2022 +0200
snap: Use GS_APP_QUIRK_DEVELOPMENT_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..073d729d0 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_DEVELOPMENT_SOURCE);
return g_steal_pointer (&app);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]