pmb/aportgen/busybox_static.py: pass lint

This commit is contained in:
Oliver Smith 2020-05-12 21:25:44 +02:00
parent 61cf186566
commit ae7b02c918
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 6 additions and 1 deletions

View File

@ -48,6 +48,11 @@ def generate(args, pkgname):
# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen {pkgname}
# Stub for apkbuild-lint
if [ -z "$(type -t arch_to_hostspec)" ]; then
arch_to_hostspec() {{ :; }}
fi
pkgname={pkgname}
pkgver={pkgver}
pkgrel={pkgrel}
@ -74,7 +79,7 @@ def generate(args, pkgname):
}}
"""
for line in apkbuild.split("\n"):
handle.write(line[12:] + "\n")
handle.write(line[12:].replace(" " * 4, "\t") + "\n")
# Hashes
handle.write("sha512sums=\"" + hashes.rstrip() + "\"\n")