From ec5e12221ffca7f6b4b4ed436f6f9301f3ff7d0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sun, 27 Oct 2013 22:32:59 +0100 Subject: [PATCH] Allow for spaces before/after version and vercode This allows for 'Build: foo, 1' as well as the old 'Build:foo,1' --- fdroidserver/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index c5ef55c0..51fcfa62 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -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: