pmb.aportgen.binutils: adjust to subpackages in if (MR 2048)

Adjust the code so subpackages="" stays empty even with the latest
version of Alpine's APKBUILD.
This commit is contained in:
Oliver Smith 2021-04-25 15:21:50 +02:00
parent 2a0128d48a
commit 1481e69981
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 5 additions and 2 deletions

View file

@ -50,5 +50,8 @@ def generate(args, pkgname):
"gold": None,
}
replace_simple = {"\tsubpackages=*": "\tsubpackages=\"\""}
pmb.aportgen.core.rewrite(args, pkgname, "main/binutils", fields,
"binutils", replace_functions, remove_indent=8)
"binutils", replace_functions, replace_simple,
remove_indent=8)