[gnome-software/wip/hughsie/wildcard-legacy: 9/11] trivial: Correctly assign appstream::source-file
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/hughsie/wildcard-legacy: 9/11] trivial: Correctly assign appstream::source-file
- Date: Mon, 15 Jul 2019 09:10:56 +0000 (UTC)
commit 90008666fa5313e3e7727521eadf1dfb718a11a6
Author: Richard Hughes <richard hughsie com>
Date: Sun Jul 14 18:42:26 2019 +0100
trivial: Correctly assign appstream::source-file
The info component is stored under the 'components' parent node.
plugins/core/gs-appstream.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/core/gs-appstream.c b/plugins/core/gs-appstream.c
index 23d966ff..9a3d66be 100644
--- a/plugins/core/gs-appstream.c
+++ b/plugins/core/gs-appstream.c
@@ -707,7 +707,7 @@ gs_appstream_refine_app (GsPlugin *plugin,
gs_app_set_id (app, tmp);
/* set source */
- tmp = xb_node_query_text (component, "info/filename", NULL);
+ tmp = xb_node_query_text (component, "../info/filename", NULL);
if (tmp != NULL && gs_app_get_metadata_item (app, "appstream::source-file") == NULL) {
gs_app_set_metadata (app, "appstream::source-file", tmp);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]