kconfig check: add --keep-going argument (MR 2384)

Abort the "pmbootstrap kconfig check" on the first error, unless the
--keep-going argument was passed. This makes it easier to go through the
failed kernels one by one until they are all fixed.
This commit is contained in:
Oliver Smith 2024-07-28 15:51:59 +02:00
parent 816ae5ac6c
commit f1afdeaaa1
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
4 changed files with 13 additions and 2 deletions

View file

@ -77,7 +77,7 @@ def run_command(args: PmbArgs):
elif args.action == "pull":
command = Pull()
elif args.action == "kconfig" and args.action_kconfig == "check":
command = KConfigCheck(args.kconfig_check_details, args.file, args.package)
command = KConfigCheck(args.kconfig_check_details, args.file, args.package, args.keep_going)
elif args.action == "kconfig" and args.action_kconfig in ["edit", "migrate"]:
command = KConfigEdit(args.package[0], args.action_kconfig == "migrate")
else: