aportgen: fix extra newline (!1811)

This commit is contained in:
Daniele Debernardi 2019-09-14 01:26:49 +02:00
parent 3ce1ea277c
commit ff50a5e382
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
2 changed files with 6 additions and 5 deletions

View File

@ -91,6 +91,8 @@ def rewrite(args, pkgname, path_original, fields={}, replace_pkgname=None,
"# Based on: " + path_original + "\n",
"\n",
]
if below_header:
for line in below_header.split("\n"):
if not line[:8].strip():
line = line[8:]

View File

@ -2,7 +2,6 @@
# Generator: pmbootstrap aportgen binutils-armhf
# Based on: main/binutils
pkgname="binutils-armhf"
pkgver=2.31.1
pkgrel=1