1
0
mirror of https://gitlab.com/openlp/packaging.git synced 2024-12-22 13:02:50 +00:00

Fix issue where bzr revision was included for release in .version files.

This commit is contained in:
Martin Zibricky 2012-09-14 01:09:42 +02:00
parent 8729b6a2a3
commit 07cceba2c6

View File

@ -377,7 +377,11 @@ class MacosxBuilder(object):
self.version_string = u'%s-bzr%s' % (tag, latest) self.version_string = u'%s-bzr%s' % (tag, latest)
self.version_tag = tag self.version_tag = tag
version_file = open(os.path.join(self.dist_path, u'.version'), u'w') 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() version_file.close()
def copy_plugins(self): def copy_plugins(self):