chiark / gitweb /
Fine-tune error reporting of vercode mismatch
authorTias Guns <tias@ulyssis.org>
Wed, 14 Mar 2012 23:59:05 +0000 (23:59 +0000)
committerTias Guns <tias@ulyssis.org>
Thu, 15 Mar 2012 00:02:21 +0000 (00:02 +0000)
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?

fdroidserver/build.py

index c341dda549c36d50e935da4605ed5c0eec59ffc9..f46f6c7dce0bf1365920d04306f96d449e374bc6 100644 (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']))
                             )