mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 14:30:11 +01:00
metadata: YAML 1.2 handles gradle: off
now, "off" isn't a boolean
Before switching to YAML 1.2, there needed to be special handling of values that YAML parsed as booleans.
This commit is contained in:
parent
070dae1431
commit
1bc9b41a2b
@ -1172,10 +1172,6 @@ def _builds_to_yaml(app):
|
||||
for field in build_flags:
|
||||
if hasattr(build, field):
|
||||
value = getattr(build, field)
|
||||
if field == 'gradle' and value == ['off']:
|
||||
value = [
|
||||
ruamel.yaml.scalarstring.SingleQuotedScalarString('off')
|
||||
]
|
||||
typ = flagtype(field)
|
||||
# don't check value == True for TYPE_INT as it could be 0
|
||||
if value and typ == TYPE_STRINGMAP:
|
||||
|
Loading…
Reference in New Issue
Block a user