From d2eb316884c3a213e959d40ae9ad18d5f590bd17 Mon Sep 17 00:00:00 2001 From: Matthias Klumpp Date: Thu, 23 Nov 2023 00:37:34 +0100 Subject: [PATCH] Fix query element order for what-provides queries Looks like at some point xmlb stopped accepting the old element order - but the new one is more consistent anyway. --- src/as-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/as-cache.c b/src/as-cache.c index 4388ca857..c227c3fe1 100644 --- a/src/as-cache.c +++ b/src/as-cache.c @@ -1736,7 +1736,7 @@ as_cache_get_components_by_provided_item (AsCache *cache, XbValueBindings *vbindings = xb_query_context_get_bindings (&context); xpath_query_tmpl = "components/component/provides/%s[text()=?]/../.."; - xpath_query_type_tmpl = "components/component/provides/%s[text()=?][@type='%s']/../.."; + xpath_query_type_tmpl = "components/component/provides/%s[@type='%s'][text()=?]/../.."; if (kind == AS_PROVIDED_KIND_LIBRARY) kind_node_name = "library";