mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03: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
1 changed files with 0 additions and 4 deletions
|
|
@ -1172,10 +1172,6 @@ def _builds_to_yaml(app):
|
||||||
for field in build_flags:
|
for field in build_flags:
|
||||||
if hasattr(build, field):
|
if hasattr(build, field):
|
||||||
value = getattr(build, field)
|
value = getattr(build, field)
|
||||||
if field == 'gradle' and value == ['off']:
|
|
||||||
value = [
|
|
||||||
ruamel.yaml.scalarstring.SingleQuotedScalarString('off')
|
|
||||||
]
|
|
||||||
typ = flagtype(field)
|
typ = flagtype(field)
|
||||||
# don't check value == True for TYPE_INT as it could be 0
|
# don't check value == True for TYPE_INT as it could be 0
|
||||||
if value and typ == TYPE_STRINGMAP:
|
if value and typ == TYPE_STRINGMAP:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue