mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 14:30:11 +01:00
Error when extra spacings are found
This commit is contained in:
parent
f36e7bff29
commit
18deea2ac8
@ -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…
Reference in New Issue
Block a user