diff options
| author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2012-03-06 22:06:40 +0100 |
|---|---|---|
| committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2012-03-06 22:06:40 +0100 |
| commit | 06662985cb678b17efbd3dfd7aa77da3e25af16b (patch) | |
| tree | 7689ea0dec5b656bba963a03239d54808d263a5e /utils/common/deploy.py | |
| parent | 7d2c7b83b58086905ef9578cc87c0346e109179e (diff) | |
| download | rockbox-06662985cb678b17efbd3dfd7aa77da3e25af16b.zip rockbox-06662985cb678b17efbd3dfd7aa77da3e25af16b.tar.gz rockbox-06662985cb678b17efbd3dfd7aa77da3e25af16b.tar.bz2 rockbox-06662985cb678b17efbd3dfd7aa77da3e25af16b.tar.xz | |
Correctly insert build ID.
Change-Id: I35a85ffd78bd0a56a31d6ba0abbd6102727155d4
Diffstat (limited to 'utils/common/deploy.py')
| -rwxr-xr-x | utils/common/deploy.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/utils/common/deploy.py b/utils/common/deploy.py index 070cea6..8f7fd72 100755 --- a/utils/common/deploy.py +++ b/utils/common/deploy.py @@ -569,10 +569,13 @@ def deploy(): # replacements made on the replacement string: # %REVISION% is replaced with the revision number replacement = re.sub("%REVISION%", str(revision), r[1]) - # %BUILD% is replace with buildid as passed on the command line + newline = re.sub(r[0], replacement, newline) + # %BUILD% is replaced with buildid as passed on the command line if buildid != None: - replacement = re.sub("%BUILDID%", str(buildid), replacement) - newline = re.sub(r[0], replacement, newline) + replacement = re.sub("%BUILDID%", "-" + str(buildid), replacement) + else: + replacement = re.sub("%BUILDID%", "", replacement) + newline = re.sub(r[0], replacement, newline) outfile.write(newline) outfile.close() |