1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 22:40:12 +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) field, value = line.split(':',1)
except ValueError: except ValueError:
raise MetaDataException("Invalid metadata in " + metafile.name + " at: " + line) 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... # Translate obsolete fields...
if field == 'Market Version': if field == 'Market Version':