1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

Revert "Allow for spaces before/after version and vercode"

This reverts commit ec5e12221f.
This commit is contained in:
Daniel Martí 2013-10-27 22:43:24 +01:00
parent ec5e12221f
commit a5472d9b9a

View File

@ -466,8 +466,8 @@ def parse_metadata(metafile, verbose=False):
raise MetaDataException("Invalid build format: " + value + " in " + metafile.name) raise MetaDataException("Invalid build format: " + value + " in " + metafile.name)
thisbuild = {} thisbuild = {}
thisbuild['origlines'] = lines thisbuild['origlines'] = lines
thisbuild['version'] = parts[0].strip() thisbuild['version'] = parts[0]
thisbuild['vercode'] = parts[1].strip() thisbuild['vercode'] = parts[1]
try: try:
testvercode = int(thisbuild['vercode']) testvercode = int(thisbuild['vercode'])
except: except: