fix: claim the archives a core reads by members

This commit is contained in:
Abdessamad Derraz committed 2026-10-16 19:50:27 +02:00
1 parent 9faa3a3f79
commit 598c930771
6 files changed
+176 -31

No files matched your search

+6
View File
@@ -623,6 +623,12 @@ def archive_entry(archive: str, files: list[dict]) -> dict:
return {**own, "members": members} if members else own
def holds_required_members(path: str, members: list[dict]) -> bool:
"""Whether an archive holds every member a profile requires inside it."""
crcs = zip_member_crcs(path)
return all(m["crc32"] in crcs for m in members if m["required"])
def _holding_members(paths: list[str], members: list[dict]) -> list[str]:
"""The same-named archives holding the most required members, then the most members.