lint: enforce max line length (MR 2097)

This commit is contained in:
BO41 2021-08-23 08:14:10 +02:00 committed by Oliver Smith
parent 51bfdc9784
commit 77d39ecdf1
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
5 changed files with 17 additions and 23 deletions

View file

@ -27,6 +27,7 @@ def generate(args, pkgname):
channel_cfg = pmb.config.pmaports.read_config_channel(args)
mirrordir = channel_cfg["mirrordir_alpine"]
apkbuild_path = f"{args.work}/chroot_native/{tempdir}/APKBUILD"
apk_name = f'"$srcdir/grub-efi-$pkgver-r$pkgrel-$_arch-{mirrordir}.apk"'
with open(apkbuild_path, "w", encoding="utf-8") as handle:
apkbuild = f"""\
# Automatically generated aport, do not edit!
@ -48,7 +49,7 @@ def generate(args, pkgname):
package() {{
mkdir -p "$pkgdir"
cd "$pkgdir"
tar -xf "$srcdir/grub-efi-$pkgver-r$pkgrel-$_arch-{mirrordir}.apk"
tar -xf {apk_name}
rm .PKGINFO .SIGN.*
}}
"""