[gnome-software/gnome-3-22] trivial: Set some dummy data for flatpak bundles without AppStream
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-22] trivial: Set some dummy data for flatpak bundles without AppStream
- Date: Mon, 7 Nov 2016 13:38:07 +0000 (UTC)
commit 3e145900524d9c3f4f63e3dec528b6bf53d9b1e5
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
(cherry picked from commit a58638abd4b5de523050a547845fbf01ee4be2fe)
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 d38dcd6..dfa1d32 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -1947,6 +1947,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]