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:
parent
f36e7bff29
commit
18deea2ac8
@ -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':
|
||||||
|
Loading…
Reference in New Issue
Block a user