mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03: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:
parent
61a8466ed5
commit
ec5e12221f
1 changed files with 2 additions and 2 deletions
|
|
@ -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]
|
thisbuild['version'] = parts[0].strip()
|
||||||
thisbuild['vercode'] = parts[1]
|
thisbuild['vercode'] = parts[1].strip()
|
||||||
try:
|
try:
|
||||||
testvercode = int(thisbuild['vercode'])
|
testvercode = int(thisbuild['vercode'])
|
||||||
except:
|
except:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue