mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
Error when extra spacings are found
This commit is contained in:
parent
f36e7bff29
commit
18deea2ac8
1 changed files with 2 additions and 0 deletions
|
|
@ -586,6 +586,8 @@ def parse_metadata(metafile):
|
|||
field, value = line.split(':',1)
|
||||
except ValueError:
|
||||
raise MetaDataException("Invalid metadata in " + metafile.name + " at: " + line)
|
||||
if field != field.strip() or value != value.strip():
|
||||
raise MetaDataException("Extra spacing found in " + metafile.name + " at: " + line)
|
||||
|
||||
# Translate obsolete fields...
|
||||
if field == 'Market Version':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue