mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03: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
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue