Skip to content
Snippets Groups Projects
Unverified Commit 32045775 authored by Anri Dellal's avatar Anri Dellal
Browse files

Fix apkbuild parsing in edge cases (MR 2503)

This commit removes separator in split function arguments, so arrays
where items are separates by tabulation don't fail to parse properly.
parent bb126097
No related branches found
No related tags found
1 merge request!2503Fix apkbuild parsing in edge cases
Pipeline #211235 failed
......@@ -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])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment