forked from Mirror/pmbootstrap
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:
parent
816ae5ac6c
commit
f1afdeaaa1
4 changed files with 13 additions and 2 deletions
|
@ -14,11 +14,13 @@ class KConfigCheck(commands.Command):
|
|||
details: bool
|
||||
file: str
|
||||
packages: list[str]
|
||||
keep_going: bool
|
||||
|
||||
def __init__(self, details, file, packages):
|
||||
def __init__(self, details, file, packages, keep_going):
|
||||
self.details = details
|
||||
self.file = file
|
||||
self.packages = packages
|
||||
self.keep_going = keep_going
|
||||
|
||||
def run(self):
|
||||
# Build the components list from cli arguments (--waydroid etc.)
|
||||
|
@ -51,6 +53,8 @@ class KConfigCheck(commands.Command):
|
|||
continue
|
||||
if not pmb.parse.kconfig.check(package, components_list, details=self.details):
|
||||
error = True
|
||||
if not self.keep_going:
|
||||
break
|
||||
|
||||
# At least one failure
|
||||
if error:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue