summaryrefslogtreecommitdiff
path: root/hid/patch.py
diff options
context:
space:
mode:
authortomaszduda23 <[email protected]>2022-07-15 16:22:26 +0900
committerGitHub <[email protected]>2022-07-15 10:22:26 +0300
commit48f479286170f3cf79304d9b89dd166dec5af834 (patch)
treec99ed8dee91921c6e39127a6af2dfafb5416849d /hid/patch.py
parent4b87851119ea8b1529ac9d29a563c6823220bf46 (diff)
commented kvmd/kvmd#80 (#102)
Co-authored-by: Maxim Devaev <[email protected]>
Diffstat (limited to 'hid/patch.py')
-rw-r--r--hid/patch.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/hid/patch.py b/hid/patch.py
index 9c253295..0d080b49 100644
--- a/hid/patch.py
+++ b/hid/patch.py
@@ -28,6 +28,7 @@ def _patch(path: str, patch_path: str) -> None:
assert exists(path)
flag_path: str = join(path, f".{basename(patch_path)}.done")
if not exists(flag_path):
+ # TODO check for failure
env.Execute(f"patch -p1 -d {path} < {patch_path}")
env.Execute(lambda *_, **__: open(flag_path, "w").close())