[gnome-software/wip/hughsie/wildcard-legacy: 2/4] trivial: Correctly assign appstream::source-file



commit a4d4fe0d4bdcf833d65db6eae546d59e04edbf29
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]