mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
correct yaml-rewriting for buildozer flag
This commit is contained in:
parent
0980fb4df8
commit
1b362c2183
1 changed files with 2 additions and 2 deletions
|
@ -837,7 +837,7 @@ def post_metadata_parse(app):
|
||||||
elif v == [False]:
|
elif v == [False]:
|
||||||
return ['no']
|
return ['no']
|
||||||
|
|
||||||
_bool_allowed = ('disable', 'kivy', 'maven')
|
_bool_allowed = ('disable', 'kivy', 'maven', 'buildozer')
|
||||||
|
|
||||||
builds = []
|
builds = []
|
||||||
if 'builds' in app:
|
if 'builds' in app:
|
||||||
|
@ -1063,7 +1063,7 @@ def write_yaml(mf, app):
|
||||||
value = getattr(build, field)
|
value = getattr(build, field)
|
||||||
if field == 'gradle' and value == ['off']:
|
if field == 'gradle' and value == ['off']:
|
||||||
value = [ruamel.yaml.scalarstring.SingleQuotedScalarString('off')]
|
value = [ruamel.yaml.scalarstring.SingleQuotedScalarString('off')]
|
||||||
if field in ('disable', 'kivy', 'maven'):
|
if field in ('disable', 'kivy', 'maven', 'buildozer'):
|
||||||
if value == 'no':
|
if value == 'no':
|
||||||
continue
|
continue
|
||||||
elif value == 'yes':
|
elif value == 'yes':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue