aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xframe-steamos/patch-frame4
1 files changed, 4 insertions, 0 deletions
diff --git a/frame-steamos/patch-frame b/frame-steamos/patch-frame
index b6dc485..a3e6440 100755
--- a/frame-steamos/patch-frame
+++ b/frame-steamos/patch-frame
@@ -153,6 +153,7 @@ PATCHES = {
def start():
+ skipped = False
for name, patch in PATCHES.items():
target = Path(name).resolve(strict=True)
data = target.read_bytes()
@@ -162,6 +163,7 @@ def start():
f"Skipping {target}: unrecognised checksum {checksum.hex()}",
file=sys.stderr,
)
+ skipped = True
continue
patched = patch.apply_to(data)
source = RUNTIME / hashlib.sha256(os.fsencode(target)).hexdigest()
@@ -175,6 +177,8 @@ def start():
check=True,
)
print(f"Patched {target}", file=sys.stderr)
+ if skipped:
+ raise SystemExit(1)
def stop():