1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-19 21:30:10 +01:00

yaml build flag prebuild: keep writing string rathern than list of strings when theres just 1 entry

This commit is contained in:
Michael Pöhn 2018-08-28 10:27:56 +02:00 committed by Michael Pöhn
parent 723815a25b
commit afdc0be954

View File

@ -1199,7 +1199,10 @@ def write_yaml(mf, app):
elif value == 'yes':
value = 'yes'
if field == 'prebuild':
value = value.split(' && ')
prebuild_tokens = value.split(' && ')
# when theres just 1 entry keep string rather than a list
if len(prebuild_tokens) > 1:
value = prebuild_tokens
b.update({field: _field_to_yaml(flagtype(field), value)})
builds.append(b)