mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 14:30:11 +01:00
Fine-tune error reporting of vercode mismatch
I had a recipe that used 'Build Version: 0.1,2,...' with a ' ' between the : and the version number. This failed in uncomprehensible ways untill I figured the above out. Perhaps a better solution would be to make the parser insensitive to spaces between the ':' and what's after it?
This commit is contained in:
parent
35668ebd87
commit
e404abce21
@ -240,9 +240,9 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, extlib_dir, tmp_dir,
|
|||||||
|
|
||||||
if (version != thisbuild['version'] or
|
if (version != thisbuild['version'] or
|
||||||
vercode != thisbuild['vercode']):
|
vercode != thisbuild['vercode']):
|
||||||
raise BuildException(("Unexpected version/version code in output"
|
raise BuildException(("Unexpected version/version code in output;"
|
||||||
"APK: %s / %s"
|
" APK: '%s' / '%s'"
|
||||||
"Expected: %s / %s")
|
" Expected: '%s' / '%s'")
|
||||||
% (version, str(vercode), thisbuild['version'], str(thisbuild['vercode']))
|
% (version, str(vercode), thisbuild['version'], str(thisbuild['vercode']))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user