[gnome-software/wip/hughsie/webapps: 4/4] Do not require a pkgname tag when refining a webapp



commit f8d995a1e36738813dcbd404c1cec36e9f33bdbf
Author: Richard Hughes <richard hughsie com>
Date:   Thu Aug 29 12:36:46 2019 +0100

    Do not require a pkgname tag when refining a webapp
    
    Fixes https://gitlab.gnome.org/GNOME/gnome-software/issues/758

 plugins/core/gs-plugin-appstream.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/plugins/core/gs-plugin-appstream.c b/plugins/core/gs-plugin-appstream.c
index 31316ba2..7979806b 100644
--- a/plugins/core/gs-plugin-appstream.c
+++ b/plugins/core/gs-plugin-appstream.c
@@ -719,6 +719,7 @@ gs_plugin_refine_from_id (GsPlugin *plugin,
 
        /* look in AppStream then fall back to AppData */
        xb_string_append_union (xpath, "components/component/id[text()='%s']/../pkgname/..", id);
+       xb_string_append_union (xpath, "components/component[@type='webapp']/id[text()='%s']/..", id);
        xb_string_append_union (xpath, "component/id[text()='%s']/../pkgname/..", id);
        components = xb_silo_query (priv->silo, xpath->str, 0, &error_local);
        if (components == NULL) {


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