[gnome-software/wip/kalev/gnome-3-22: 69/96] trivial: Never add the .runtime suffix



commit 849686decdc825619f80f13dcef16d423d55c2c5
Author: Richard Hughes <richard hughsie com>
Date:   Wed Feb 22 10:47:19 2017 +0000

    trivial: Never add the .runtime suffix
    
    We dropped doing this in the flatpak plugin some time ago...

 src/plugins/gs-appstream.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/gs-appstream.c b/src/plugins/gs-appstream.c
index 082e714..1cc3713 100644
--- a/src/plugins/gs-appstream.c
+++ b/src/plugins/gs-appstream.c
@@ -307,7 +307,6 @@ gs_appstream_create_runtime (GsPlugin *plugin,
                             const gchar *runtime)
 {
        GsApp *app_cache;
-       g_autofree gchar *id = NULL;
        g_autofree gchar *source = NULL;
        g_auto(GStrv) split = NULL;
        g_autoptr(GsApp) app = NULL;
@@ -318,8 +317,7 @@ gs_appstream_create_runtime (GsPlugin *plugin,
                return NULL;
 
        /* create the complete GsApp from the single string */
-       id = g_strdup_printf ("%s.runtime", split[0]);
-       app = gs_app_new (id);
+       app = gs_app_new (split[0]);
        source = g_strdup_printf ("runtime/%s", runtime);
        gs_app_add_source (app, source);
        gs_app_set_bundle_kind (app, AS_BUNDLE_KIND_FLATPAK);


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