chiark / gitweb /
correct yaml-rewriting for buildozer flag
authorMichael Pöhn <michael.poehn@fsfe.org>
Tue, 4 Jul 2017 11:27:45 +0000 (13:27 +0200)
committerMichael Pöhn <michael.poehn@fsfe.org>
Tue, 4 Jul 2017 11:27:45 +0000 (13:27 +0200)
fdroidserver/metadata.py

index f63349de52ac31b9b1498205edad3e650b506b2f..ac97edf3aeac9b8447fa091e82d87ea2057ababd 100644 (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':