Skip to content

Commit

Permalink
Fix query element order for what-provides queries
Browse files Browse the repository at this point in the history
Looks like at some point xmlb stopped accepting the old element order -
but the new one is more consistent anyway.
  • Loading branch information
ximion committed Nov 22, 2023
1 parent f4a030b commit d2eb316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/as-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit d2eb316

Please sign in to comment.