Disable patches check on github

This commit is contained in:
Julien Cretin
2022-06-21 19:58:43 +02:00
parent 90322cf5ed
commit d7b24424e5
2 changed files with 12 additions and 3 deletions

View File

@@ -770,7 +770,8 @@ class OpenSKInstaller:
info("Nothing to do.")
return 0
subprocess.run(["./maintainers/patches", "check"], check=False)
if self.args.check_patches:
subprocess.run(["./maintainers/patches", "check"], check=False)
# Compile what needs to be compiled
board_props = SUPPORTED_BOARDS[self.args.board]
@@ -1108,6 +1109,14 @@ if __name__ == "__main__":
"of variable-time arithmetic for computations over secret key."),
)
main_parser.add_argument(
"--disable-check-patches",
action="store_false",
default=True,
dest="check_patches",
help=("Don't check that patches are in sync with their submodules."),
)
main_parser.set_defaults(features=["with_ctap1"])
# Start parsing to know if we're going to list things or not.