chiark / gitweb /
Give a helpful message when the version can't be found it the output, instead of...
authorCiaran Gultnieks <ciaran@ciarang.com>
Mon, 31 Jan 2011 22:24:31 +0000 (22:24 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Mon, 31 Jan 2011 22:24:31 +0000 (22:24 +0000)
build.py

index 80a471ed5e3bdfb68148abe48e8ad3ae2c88b6e2..749e01f3bf2df575ff01baf4022505cc633b7129 100644 (file)
--- 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