Make match_any_ext use TARGETS_FOR_HOST const array for values

This commit is contained in:
Alexandre 'Kidev' Poumaroux
2025-04-24 10:00:56 +02:00
parent a039f9ff9e
commit 3efa01906c

View File

@@ -782,7 +782,7 @@ class MetadataFactory:
def match_any_ext(ver: Version) -> bool:
return (
self.archive_id.host == "all_os"
and self.archive_id.target in {"wasm", "android"}
and self.archive_id.target in ArchiveId.TARGETS_FOR_HOST["all_os"]
and ver in SimpleSpec("6.7.*")
)