lint: run apkbuild-lint as user, not root (MR 2412)

It is not needed to run the linter as root, so don't do it. This is
probably a leftover from early days pmbootstrap, where pmaports.git
wasn't chowned by the user running pmbootstrap.
This commit is contained in:
Oliver Smith 2024-09-26 20:31:04 +02:00
parent e56eadd6e9
commit 8b48a95c18
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -60,7 +60,7 @@ def check(pkgnames: Sequence[str]):
# For each pkgrepo run the linter on the relevant packages
has_failed = False
for pkgrepo, apkbuild_paths in apkbuilds.items():
if pmb.chroot.root(
if pmb.chroot.user(
["apkbuild-lint"] + apkbuild_paths,
check=False,
output="stdout",