Skip to content

Commit

Permalink
Appstream: Use exact name match for application lookups.
Browse files Browse the repository at this point in the history
Prefix matching is ok for addons, but some apps can be similar
enough to cause confused results.

Fixes linuxmint/mint22.1-beta#37.
  • Loading branch information
mtwebster committed Dec 14, 2024
1 parent fa24749 commit 7a4d6e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def lookup_appstream_package(self, pkginfo):
try:
if kind == KIND_APP:
base_node = self.xmlb_silo.query_first(
f"components/component/id[starts-with(text(),'{pkginfo.name}')]/.."
f"components/component/id[text()='{pkginfo.name}']/.."
)
else:
base_nodes = self.xmlb_silo.query(
Expand Down

0 comments on commit 7a4d6e0

Please sign in to comment.