feat: namespace mod hashes

This commit is contained in:
aclist committed 2026-06-11 08:02:27 +09:00
1 parent b35b6148bc
commit 8503d7e698
2 files changed
+11 -6

No files matched your search

+6 -2
View File
@@ -119,10 +119,14 @@ def get_missing_mods(local: list, remote: list) -> list:
return [mod for mod in remote if mod not in local]
def _hash(uid: str) -> str:
def _hash(uid: str, use_custom: bool = False) -> str:
md5 = hashlib.md5()
md5.update(uid.encode("ascii"))
return "@" + md5.hexdigest()[:8]
if use_custom:
prefix = "@C"
else:
prefix = "@"
return prefix + md5.hexdigest()[:8]
def remove_stale_signatures(config: Path, versions: Path) -> None: