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:
parent
723815a25b
commit
afdc0be954
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user