1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 22:40:12 +01:00

correct yaml-rewriting for buildozer flag

This commit is contained in:
Michael Pöhn 2017-07-04 13:27:45 +02:00
parent 0980fb4df8
commit 1b362c2183

View File

@ -837,7 +837,7 @@ def post_metadata_parse(app):
elif v == [False]:
return ['no']
_bool_allowed = ('disable', 'kivy', 'maven')
_bool_allowed = ('disable', 'kivy', 'maven', 'buildozer')
builds = []
if 'builds' in app:
@ -1063,7 +1063,7 @@ def write_yaml(mf, app):
value = getattr(build, field)
if field == 'gradle' and value == ['off']:
value = [ruamel.yaml.scalarstring.SingleQuotedScalarString('off')]
if field in ('disable', 'kivy', 'maven'):
if field in ('disable', 'kivy', 'maven', 'buildozer'):
if value == 'no':
continue
elif value == 'yes':