From: Ciaran Gultnieks Date: Mon, 31 Jan 2011 22:24:31 +0000 (+0000) Subject: Give a helpful message when the version can't be found it the output, instead of... X-Git-Tag: 0.1~1489 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=dfac91132b726bc5ad8d1e1ccba30b8c126bad41;p=fdroidserver.git Give a helpful message when the version can't be found it the output, instead of barfing --- diff --git a/build.py b/build.py index 80a471ed..749e01f3 100644 --- a/build.py +++ b/build.py @@ -405,6 +405,9 @@ for app in apps: vercode = re.match(pat, line).group(1) pat = re.compile(".*versionName='([^']*)'.*") version = re.match(pat, line).group(1) + if version == None or versioncode == None: + print "Could not find version information in build in output" + sys.exit(1) # Some apps (e.g. Timeriffic) have had the bonkers idea of # including the entire changelog in the version number. Remove