1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-11 23:23:27 +02: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:
Tias Guns 2012-03-14 23:59:05 +00:00
parent 35668ebd87
commit e404abce21

View File

@ -240,9 +240,9 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, extlib_dir, tmp_dir,
if (version != thisbuild['version'] or
vercode != thisbuild['vercode']):
raise BuildException(("Unexpected version/version code in output"
"APK: %s / %s"
"Expected: %s / %s")
raise BuildException(("Unexpected version/version code in output;"
" APK: '%s' / '%s'"
" Expected: '%s' / '%s'")
% (version, str(vercode), thisbuild['version'], str(thisbuild['vercode']))
)