Skip to content
Snippets Groups Projects

Fix apkbuild parsing in edge cases

Merged Anri Dellal requested to merge HenriDellal/pmbootstrap:fix-pmaports-ci into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -229,7 +229,7 @@ def _parse_attributes(
for attribute, options in apkbuild_attributes.items():
if options.get("array", False):
# Split up arrays, delete empty strings inside the list
ret[attribute] = list(filter(None, ret[attribute].split(" ")))
ret[attribute] = list(filter(None, ret[attribute].split()))
if options.get("int", False):
if ret[attribute]:
ret[attribute] = int(ret[attribute])
Loading