Index: packager.py |
=================================================================== |
--- a/packager.py |
+++ b/packager.py |
@@ -52,17 +52,16 @@ def getBuildNum(baseDir): |
return '0' |
def getBuildVersion(baseDir, metadata, releaseBuild, buildNum=None): |
version = metadata.get('general', 'version') |
if not releaseBuild: |
if buildNum == None: |
buildNum = getBuildNum(baseDir) |
- buildNum = str(buildNum) |
if len(buildNum) > 0: |
if re.search(r'(^|\.)\d+$', version): |
# Numerical version number - need to fill up with zeros to have three |
# version components. |
while version.count('.') < 2: |
version += '.0' |
version += '.' + buildNum |
return version |