Allow the equals sign in prebuild commands

This commit is contained in:
Henrik Tunedal 2011-02-25 23:19:17 +01:00
parent 64774f0a80
commit fb27ce69a0
2 changed files with 3 additions and 3 deletions

2
README
View file

@ -171,7 +171,7 @@ configuration to the build. These are:
the compile about character encodings, you probably need this. the compile about character encodings, you probably need this.
prebuild=xxxx Specifies a shell command (or commands - chain with &&) to run prebuild=xxxx Specifies a shell command (or commands - chain with &&) to run
before the build takes place - the only proviso being that you 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 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 are correct by looking at the build output - assume the metadata
is correct. This takes away a useful level of sanity checking, and is correct. This takes away a useful level of sanity checking, and

View file

@ -106,8 +106,8 @@ def read_metadata(verbose=False):
thisbuild['vercode'] = parts[1] thisbuild['vercode'] = parts[1]
thisbuild['commit'] = parts[2] thisbuild['commit'] = parts[2]
for p in parts[3:]: for p in parts[3:]:
pp = p.split('=') pk, pv = p.split('=', 1)
thisbuild[pp[0]] = pp[1] thisbuild[pk] = pv
thisinfo['builds'].append(thisbuild) thisinfo['builds'].append(thisbuild)
elif field == "Use Built": elif field == "Use Built":
if value == "Yes": if value == "Yes":