add warning about TXT metadata deprecation

closes #805
refs !772

@eighthave changed the original commit to leave the existing code unchanged.
This commit is contained in:
Michael Pöhn 2020-07-04 08:18:06 +02:00 committed by Hans-Christoph Steiner
parent 8716474083
commit 657defc933
No known key found for this signature in database
GPG key ID: 3E177817BA1B9BFA

View file

@ -809,6 +809,18 @@ def read_metadata(xref=True, check_vcs=[], refresh=True, sort_by_time=False):
+ glob.glob('.fdroid.json')
+ glob.glob('.fdroid.yml'))
for f in metadatafiles:
if not f.endswith('.yml'):
print(textwrap.dedent("""\
WARNING: Some of your metadata files are stored in a deprecated format!
Future versions of fdroid will exclusively support YAML metadata.
You can convert all your metadata to YAML by running:
`fdroid rewritemeta --to yml`
"""))
break
if sort_by_time:
entries = ((os.stat(path).st_mtime, path) for path in metadatafiles)
metadatafiles = []