mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-10 21:43:23 -05:00
fix: print the released pack counts, not main's
This commit is contained in:
1 parent
d0279fe4d5
commit
243e95725b
11 files changed
+450
-89
No files matched your search
@@ -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"
|
||||
|
||||
|
||||
Reference in new issue
Block a user