mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-08 00:10:29 +03:00
remove support for rewriting to txt
This commit is contained in:
parent
bc1398f594
commit
2ec90bb490
2 changed files with 12 additions and 59 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# rewritemeta.py - part of the FDroid server tools
|
||||
# This cleans up the original .txt metadata file format.
|
||||
# This cleans up the original .yml metadata file format.
|
||||
# Copyright (C) 2010-12, Ciaran Gultnieks, ciaran@ciarang.com
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
|
|
@ -30,7 +30,7 @@ config = None
|
|||
options = None
|
||||
|
||||
|
||||
SUPPORTED_FORMATS = ['txt', 'yml']
|
||||
SUPPORTED_FORMATS = ['yml']
|
||||
|
||||
|
||||
def proper_format(app):
|
||||
|
|
@ -42,8 +42,6 @@ def proper_format(app):
|
|||
_ignored, extension = common.get_extension(app.metadatapath)
|
||||
if extension == 'yml':
|
||||
metadata.write_yaml(s, app)
|
||||
elif extension == 'txt':
|
||||
metadata.write_txt(s, app)
|
||||
content = s.getvalue()
|
||||
s.close()
|
||||
return content == cur_content
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue