From 1bc9b41a2be80502ced56dac0443e5c965ec59a4 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 24 May 2023 16:46:41 +0200 Subject: [PATCH] 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. --- fdroidserver/metadata.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fdroidserver/metadata.py b/fdroidserver/metadata.py index 484b9b51..9688ea6c 100644 --- a/fdroidserver/metadata.py +++ b/fdroidserver/metadata.py @@ -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: