mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Give a helpful message when the version can't be found it the output, instead of barfing
This commit is contained in:
parent
36328de43f
commit
dfac91132b
1 changed files with 3 additions and 0 deletions
3
build.py
3
build.py
|
@ -405,6 +405,9 @@ for app in apps:
|
||||||
vercode = re.match(pat, line).group(1)
|
vercode = re.match(pat, line).group(1)
|
||||||
pat = re.compile(".*versionName='([^']*)'.*")
|
pat = re.compile(".*versionName='([^']*)'.*")
|
||||||
version = re.match(pat, line).group(1)
|
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
|
# Some apps (e.g. Timeriffic) have had the bonkers idea of
|
||||||
# including the entire changelog in the version number. Remove
|
# including the entire changelog in the version number. Remove
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue