For osx release build bzr revision is not included in .version file

bzr-revno: 4
This commit is contained in:
Martin Zibricky 2012-09-15 12:39:36 +01:00 committed by Tim Bentley
commit 3267593d54
1 changed files with 5 additions and 1 deletions

View File

@ -377,7 +377,11 @@ class MacosxBuilder(object):
self.version_string = u'%s-bzr%s' % (tag, latest)
self.version_tag = tag
version_file = open(os.path.join(self.dist_path, u'.version'), u'w')
version_file.write(self.version_string)
# Release version does not contain revision in .dmg name.
if self.args.devel:
version_file.write(self.version_string)
else:
version_file.write(self.version_tag)
version_file.close()
def copy_plugins(self):