1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-11 15:13:27 +02:00

Allow for spaces before/after version and vercode

This allows for 'Build: foo, 1' as well as the old 'Build:foo,1'
This commit is contained in:
Daniel Martí 2013-10-27 22:32:59 +01:00
parent 61a8466ed5
commit ec5e12221f

View File

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