[gnome-software] trivial: Set some dummy data for flatpak bundles without AppStream



commit a58638abd4b5de523050a547845fbf01ee4be2fe
Author: Richard Hughes <richard hughsie com>
Date:   Wed Sep 21 15:01:21 2016 +0100

    trivial: Set some dummy data for flatpak bundles without AppStream

 src/plugins/gs-flatpak.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index 2ae5a29..b70029d 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -2067,6 +2067,12 @@ gs_flatpak_file_to_app_bundle (GsFlatpak *self,
                /* copy details from AppStream to app */
                if (!gs_appstream_refine_app (self->plugin, app, item, error))
                        return FALSE;
+       } else {
+               g_warning ("no appstream metadata in file");
+               gs_app_set_name (app, GS_APP_QUALITY_LOWEST,
+                                gs_app_get_flatpak_name (app));
+               gs_app_set_summary (app, GS_APP_QUALITY_LOWEST,
+                                   "A flatpak application");
        }
 
        /* load icon */


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