[gnome-software/mwleeds/hardcoded-pwa-list: 11/11] appstream: Fix XPath string for webapp type
- From: Phaedrus Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/mwleeds/hardcoded-pwa-list: 11/11] appstream: Fix XPath string for webapp type
- Date: Fri, 11 Mar 2022 01:46:57 +0000 (UTC)
commit 40b616efb78d46cd1e1555c7c5e48d5fe2cf34cb
Author: Phaedrus Leeds <mwleeds protonmail com>
Date: Thu Mar 10 12:13:17 2022 -0800
appstream: Fix XPath string for webapp type
Software applies a fixup so that even if a component has type "webapp",
it is changed to type "web-application" before being used.
plugins/core/gs-plugin-appstream.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/core/gs-plugin-appstream.c b/plugins/core/gs-plugin-appstream.c
index 26cd30736..40230daf7 100644
--- a/plugins/core/gs-plugin-appstream.c
+++ b/plugins/core/gs-plugin-appstream.c
@@ -1016,10 +1016,10 @@ gs_plugin_refine_from_id (GsPluginAppstream *self,
/* look in AppStream then fall back to AppData */
if (origin && *origin) {
xb_string_append_union (xpath,
"components[@origin='%s']/component/id[text()='%s']/../pkgname/..", origin, id);
- xb_string_append_union (xpath,
"components[@origin='%s']/component[@type='webapp']/id[text()='%s']/..", origin, id);
+ xb_string_append_union (xpath,
"components[@origin='%s']/component[@type='web-application']/id[text()='%s']/..", origin, id);
} else {
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,
"components/component[@type='web-application']/id[text()='%s']/..", id);
}
xb_string_append_union (xpath, "component/id[text()='%s']/..", id);
components = xb_silo_query (self->silo, xpath->str, 0, &error_local);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]