[gnome-builder] flatpak: create short-id for runtime



commit 37079b05cff0ae9eb16f13d95c0f107de2dcee60
Author: Christian Hergert <chergert redhat com>
Date:   Tue Aug 3 16:03:30 2021 -0700

    flatpak: create short-id for runtime

 src/plugins/flatpak/gbp-flatpak-runtime.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-runtime.c b/src/plugins/flatpak/gbp-flatpak-runtime.c
index 15f352724..d7a0839cc 100644
--- a/src/plugins/flatpak/gbp-flatpak-runtime.c
+++ b/src/plugins/flatpak/gbp-flatpak-runtime.c
@@ -740,6 +740,7 @@ gbp_flatpak_runtime_new (const char *name,
                          gboolean    is_extension)
 {
   g_autofree gchar *id = NULL;
+  g_autofree gchar *short_id = NULL;
   g_autofree gchar *display_name = NULL;
   g_autofree gchar *triplet = NULL;
   g_autofree gchar *runtime_name = NULL;
@@ -760,6 +761,7 @@ gbp_flatpak_runtime_new (const char *name,
   triplet_object = ide_triplet_new (arch);
   triplet = g_strdup_printf ("%s/%s/%s", name, arch, branch);
   id = g_strdup_printf ("flatpak:%s", triplet);
+  short_id = g_strdup_printf ("flatpak:%s-%s", name, branch);
 
   category = g_string_new ("Flatpak/");
 
@@ -784,6 +786,7 @@ gbp_flatpak_runtime_new (const char *name,
 
   return g_object_new (GBP_TYPE_FLATPAK_RUNTIME,
                        "id", id,
+                       "short-id", short_id,
                        "triplet", triplet_object,
                        "branch", branch,
                        "category", category->str,


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