[gnome-software/wip/hughsie/vnd.flatpak.ref: 12/12] trivial: Fix a console warning when refining flatpak apps



commit 76e24bb32b9a6ea9bbf775e5877116c56b329c62
Author: Richard Hughes <richard hughsie com>
Date:   Tue Sep 20 14:35:42 2016 +0100

    trivial: Fix a console warning when refining flatpak apps

 src/plugins/gs-appstream.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-appstream.c b/src/plugins/gs-appstream.c
index 3767519..9d6043a 100644
--- a/src/plugins/gs-appstream.c
+++ b/src/plugins/gs-appstream.c
@@ -561,7 +561,10 @@ gs_appstream_refine_app (GsPlugin *plugin,
                gs_app_set_id (app, as_app_get_id (item));
 
        /* set source */
-       gs_app_set_metadata (app, "appstream::source-file", as_app_get_source_file (item));
+       if (gs_app_get_metadata_item (app, "appstream::source-file") == NULL) {
+               gs_app_set_metadata (app, "appstream::source-file",
+                                    as_app_get_source_file (item));
+       }
 
        /* scope */
        if (gs_app_get_scope (app) == AS_APP_SCOPE_UNKNOWN &&


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