mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
rewritemeta: fix proper_format() so lint works with .yml files
This commit is contained in:
parent
5a6a51a29e
commit
0fa50ebcb2
1 changed files with 5 additions and 1 deletions
|
|
@ -36,6 +36,10 @@ def proper_format(app):
|
|||
# read in metadata.py
|
||||
with open(app.metadatapath, 'r', encoding='utf8') as f:
|
||||
cur_content = f.read()
|
||||
_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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue