mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 22:40:12 +01:00
make --create-metadata use yaml.dump instead of ruamel (solves #345)
This commit is contained in:
parent
b0a8d4163d
commit
732de91aa7
@ -1780,13 +1780,8 @@ def main():
|
||||
app['IssueTracker'] = ''
|
||||
app['SourceCode'] = ''
|
||||
app['CurrentVersionCode'] = 2147483647 # Java's Integer.MAX_VALUE
|
||||
try:
|
||||
import ruamel.yaml
|
||||
assert ruamel.yaml # silence pyflakes
|
||||
metadata.write_yaml(f, metadata.App(app))
|
||||
except ImportError:
|
||||
import yaml
|
||||
yaml.dump(app, f, default_flow_style=False)
|
||||
import yaml
|
||||
yaml.dump(app, f, default_flow_style=False)
|
||||
logging.info("Generated skeleton metadata for " + apk['packageName'])
|
||||
newmetadata = True
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user