1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-08-15 10:50:09 +02:00

Merge branch 'fix_tests' into 'master'

Fix ruamel round_trip_dump will be removed

See merge request fdroid/fdroidserver!932
This commit is contained in:
Hans-Christoph Steiner 2021-06-01 11:57:36 +00:00
commit 4c339b4ef4

View File

@ -968,7 +968,9 @@ def write_yaml(mf, app):
return builds
yaml_app = _app_to_yaml(app)
ruamel.yaml.round_trip_dump(yaml_app, mf, indent=4, block_seq_indent=2)
yaml = ruamel.yaml.YAML()
yaml.indent(mapping=4, sequence=4, offset=2)
yaml.dump(yaml_app, stream=mf)
build_line_sep = re.compile(r'(?<!\\),')