fix: print the released pack counts, not main's

This commit is contained in:
Abdessamad Derraz committed 2026-10-04 20:26:09 +02:00
1 parent d0279fe4d5
commit 243e95725b
11 files changed
+450 -89

No files matched your search

+6
View File
@@ -45,6 +45,12 @@ def is_part(name: str) -> bool:
return _PART_NAME.match(name) is not None
def pack_of(name: str) -> str:
"""The pack a published file belongs to, a part folded into its archive."""
part = _PART_NAME.match(name)
return f"{part['stem']}.zip" if part else name
def part_name(pack_name: str, index: int, count: int) -> str:
return f"{pack_name[: -len('.zip')]}.part{index}of{count}.zip"