refactor: define the pack suffix once

packs.parts held a second PACK_SUFFIX and five builders typed the literal; all read model.releaserecord.PACK_SUFFIX.
This commit is contained in:
Abdessamad Derraz committed 2026-11-21 06:02:28 +01:00
1 parent 71b3d7db63
commit f5946a7845
5 files changed
+11 -10

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ def _pack_version(pack_name: str, platforms: list[str]) -> str:
"""
from packs.naming import platform_pack_prefix
stem = pack_name.removesuffix("_BIOS_Pack.zip")
stem = pack_name.removesuffix(releaserecord.PACK_SUFFIX)
prefix = platform_pack_prefix(
platforms, platforms[0], str(siteinputs.current().platforms)
) + "_"