mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
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:
parent
8716474083
commit
657defc933
1 changed files with 12 additions and 0 deletions
|
@ -809,6 +809,18 @@ def read_metadata(xref=True, check_vcs=[], refresh=True, sort_by_time=False):
|
||||||
+ glob.glob('.fdroid.json')
|
+ glob.glob('.fdroid.json')
|
||||||
+ glob.glob('.fdroid.yml'))
|
+ 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:
|
if sort_by_time:
|
||||||
entries = ((os.stat(path).st_mtime, path) for path in metadatafiles)
|
entries = ((os.stat(path).st_mtime, path) for path in metadatafiles)
|
||||||
metadatafiles = []
|
metadatafiles = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue