1
0
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:
Daniel Martí 2014-02-05 09:47:55 +01:00
parent f36e7bff29
commit 18deea2ac8

View File

@ -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':