Skip to content

Commit

Permalink
fix: respect :all: in prefer_binary config
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming committed Oct 20, 2023
1 parent 049c8da commit 6d8e8a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/unearth/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,10 @@ def _sort_key(self, package: Package) -> tuple:
(self._tag_priorities.get(tag, pri - 1) for tag in file_tags),
default=pri - 1,
)
if canonicalize_name(package.name) in self.prefer_binary:
if (
canonicalize_name(package.name) in self.prefer_binary
or ":all:" in self.prefer_binary
):
prefer_binary = True

return (
Expand Down

0 comments on commit 6d8e8a0

Please sign in to comment.