1
0
Fork 1
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:
Oliver Smith 2024-09-26 20:40:23 +02:00
parent 8b48a95c18
commit 67a52b949a
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -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!")