Skip to content

Commit

Permalink
Stop the build if platform patches are not applied
Browse files Browse the repository at this point in the history
Solves #13
  • Loading branch information
krzmaz committed May 22, 2022
1 parent 7e23a7c commit cbe7566
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/apply_patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@

assert isfile(original_file) and isfile(patched_file)

env.Execute("patch %s %s" % (original_file, patched_file))
# If the patching fails, you can change the platform package manually and create
# a file called `.patching-done` to indicate that. For more details see:
# https://github.com/krzmaz/LinakDeskEsp32Controller/issues/13
if env.Execute("patch %s %s" % (original_file, patched_file)) != 0:
raise Exception("Problem while applying platform patches!\n\n"
"See scripts/apply_patches.py for more details!\n")

def _touch(path):
with open(path, "w") as fp:
Expand Down

0 comments on commit cbe7566

Please sign in to comment.