refactor: hoist test imports, rank pairs at module level

This commit is contained in:
Abdessamad Derraz committed 2026-10-06 06:38:35 +02:00
1 parent c4dab556e7
commit 0b7acf1e7f
22 files changed
+85 -110

No files matched your search

+7 -4
View File
@@ -205,10 +205,13 @@ def verify_pack(
# An archive the builder assembled (a MAME clone set): every
# member must be a dump the collection holds, loose or inside a
# romset.
if status == "untracked" and name.endswith(".zip"):
if _members_are_held(zf.read(name), by_md5, db):
status = "verified_members"
file_name = os.path.basename(name)
if (
status == "untracked"
and name.endswith(".zip")
and _members_are_held(zf.read(name), by_md5, db)
):
status = "verified_members"
file_name = os.path.basename(name)
if status == "untracked":
# Bytes nothing recognises: written wrong, or a source that