aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2026-11-15 02:03:20 +0000
committerTomasz Kramkowski <tomasz@kramkow.ski>2026-11-15 02:03:20 +0000
commite2f9c9a3c190aeb15bd39e9baeccb78af417fc1e (patch)
treededc60a217fa511fc8479802274af4fe68a545e3
parent0762f7b86a2074becc8eca204b039329810fd9c7 (diff)
downloadsteamvr-patches-e2f9c9a3c190aeb15bd39e9baeccb78af417fc1e.tar.gz
steamvr-patches-e2f9c9a3c190aeb15bd39e9baeccb78af417fc1e.tar.xz
steamvr-patches-e2f9c9a3c190aeb15bd39e9baeccb78af417fc1e.zip
frame-steamos: exit nonzero if patches were skipped
-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():