mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-13 03:19:47 +03:00
lint: make output of apkbuild-lint easy to spot (MR 2412)
The output of apkbuild-lint is hard to spot among other log messages from pmbootstrap, because it is not colorized. Add "*** apkbuild-lint output ***"" before and after the output of apkbuild-lint, so we get a standing out message in green around the apkbuild-lint output.
This commit is contained in:
parent
8b48a95c18
commit
67a52b949a
1 changed files with 5 additions and 0 deletions
|
@ -57,6 +57,9 @@ def check(pkgnames: Sequence[str]):
|
|||
logging.info(f"(native) linting {pkgstr} with apkbuild-lint")
|
||||
options = pmb.config.apkbuild_custom_valid_options
|
||||
|
||||
# apkbuild-lint output is not colorized, make it easier to spot
|
||||
logging.info("*** apkbuild-lint output ***")
|
||||
|
||||
# For each pkgrepo run the linter on the relevant packages
|
||||
has_failed = False
|
||||
for pkgrepo, apkbuild_paths in apkbuilds.items():
|
||||
|
@ -69,5 +72,7 @@ def check(pkgnames: Sequence[str]):
|
|||
):
|
||||
has_failed = True
|
||||
|
||||
logging.info("*** apkbuild-lint output ***")
|
||||
|
||||
if has_failed:
|
||||
raise NonBugError("Linter failed!")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue