mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-29 12:58:51 -06:00
refactor: installer pins keyed by bootstrap file
installer_build.pins read the site's served names from model.guides, which loads the guides YAML at import. Since the launcher builders read the pin through it, the installer doc build pulled pyyaml in, and the Python 3.8 installer job has none.
This commit is contained in:
1 parent
9ac3145c5e
commit
753d39ffe3
4 files changed
+6
-9
No files matched your search
@@ -11,7 +11,6 @@ import tempfile
|
||||
from pathlib import Path
|
||||
|
||||
from core.paths import REPO_ROOT
|
||||
from model.guides import SH_NAME
|
||||
from installer_build.pins import PIN
|
||||
|
||||
|
||||
@@ -59,7 +58,7 @@ def installer_bytes() -> bytes:
|
||||
"""install.py, refused unless it is the one install.sh pins: the package
|
||||
then runs the installer the one-line command runs, under the same id."""
|
||||
data = (REPO_ROOT / "install.py").read_bytes()
|
||||
pins = PIN[SH_NAME].findall((REPO_ROOT / "install.sh").read_text(encoding="utf-8"))
|
||||
pins = PIN["install.sh"].findall((REPO_ROOT / "install.sh").read_text(encoding="utf-8"))
|
||||
if pins != [hashlib.sha256(data).hexdigest()]:
|
||||
raise ValueError("install.py is not the installer install.sh pins: recompute the pin")
|
||||
return data
|
||||
|
||||
Reference in new issue
Block a user