diff options
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 070cea65b5..8f7fd72175 100755 --- a/utils/common/deploy.py +++ b/utils/common/deploy.py | |||
@@ -569,10 +569,13 @@ def deploy(): | |||
569 | # replacements made on the replacement string: | 569 | # replacements made on the replacement string: |
570 | # %REVISION% is replaced with the revision number | 570 | # %REVISION% is replaced with the revision number |
571 | replacement = re.sub("%REVISION%", str(revision), r[1]) | 571 | replacement = re.sub("%REVISION%", str(revision), r[1]) |
572 | # %BUILD% is replace with buildid as passed on the command line | 572 | newline = re.sub(r[0], replacement, newline) |
573 | # %BUILD% is replaced with buildid as passed on the command line | ||
573 | if buildid != None: | 574 | if buildid != None: |
574 | replacement = re.sub("%BUILDID%", str(buildid), replacement) | 575 | replacement = re.sub("%BUILDID%", "-" + str(buildid), replacement) |
575 | newline = re.sub(r[0], replacement, newline) | 576 | else: |
577 | replacement = re.sub("%BUILDID%", "", replacement) | ||
578 | newline = re.sub(r[0], replacement, newline) | ||
576 | outfile.write(newline) | 579 | outfile.write(newline) |
577 | outfile.close() | 580 | outfile.close() |
578 | 581 | ||