refactor: one reader of the installer pin

The launcher builders read install.py's SHA-256 through
pins.installer_sha256 and the value install.sh pins through pins.PIN,
which now sits beside the pattern pin_installer writes with. build_port
kept a third copy of that pattern.
This commit is contained in:
Abdessamad Derraz committed 2026-11-18 20:44:20 +01:00
1 parent b9c91a897d
commit 27bff61560
4 files changed
+12 -13

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ SOURCES: dict[str, tuple[str, re.Pattern[str]]] = {
SH_NAME: ("install.sh", re.compile(r'^(DEFAULT_INSTALL_URL=")[^"]*(")', re.M)),
PS1_NAME: ("install.ps1", re.compile(r'^(\s*\$defaultInstallUrl = ")[^"]*(")', re.M)),
}
# The line each bootstrap says a refused installer with, and the pin.
# The line each bootstrap says a refused installer with.
ADVICE: dict[str, re.Pattern[str]] = {
SH_NAME: re.compile(r'^(MISMATCH_ADVICE=")[^"]*(")', re.M),
PS1_NAME: re.compile(r'^(\s*\$mismatchAdvice = ")[^"]*(")', re.M),