chiark / gitweb /
Allow the equals sign in prebuild commands
authorHenrik Tunedal <tunedal@gmail.com>
Fri, 25 Feb 2011 22:19:17 +0000 (23:19 +0100)
committerHenrik Tunedal <tunedal@gmail.com>
Fri, 25 Feb 2011 22:19:17 +0000 (23:19 +0100)
README
common.py

diff --git a/README b/README
index 40e4353c1f17cf14b6ebcd1ef66dcf16b2a519e6..0f3737e8ec1f84c832f89996b1ab1988f129c938 100644 (file)
--- a/README
+++ b/README
@@ -171,7 +171,7 @@ configuration to the build. These are:
                    the compile about character encodings, you probably need this.
  prebuild=xxxx     Specifies a shell command (or commands - chain with &&) to run
                    before the build takes place - the only proviso being that you
-                   can't use , or = characters.
+                   can't use commas in the command.
  novcheck=yes      Don't check that the version name and code in the resulting apk
                    are correct by looking at the build output - assume the metadata
                    is correct. This takes away a useful level of sanity checking, and
index 835d5c0d0c9010a95234dc6cf490a10558aa5fb3..0d3a06ca693e697e85b8f10fa9e2449ae95b26bf 100644 (file)
--- a/common.py
+++ b/common.py
@@ -106,8 +106,8 @@ def read_metadata(verbose=False):
                         thisbuild['vercode'] = parts[1]
                         thisbuild['commit'] = parts[2]
                         for p in parts[3:]:
-                            pp = p.split('=')
-                            thisbuild[pp[0]] = pp[1]
+                            pk, pv = p.split('=', 1)
+                            thisbuild[pk] = pv
                         thisinfo['builds'].append(thisbuild)
                     elif field == "Use Built":
                         if value == "Yes":