mirror of
https://gitlab.com/openlp/packaging.git
synced 2024-12-22 13:02:50 +00:00
Use new version number format
This commit is contained in:
parent
499847bbcd
commit
16a8037d44
@ -311,7 +311,7 @@ class Builder(object):
|
|||||||
tag, revision = lines[-1].split()
|
tag, revision = lines[-1].split()
|
||||||
output = self._bzr('log', self.branch_path, ['--line', '-r', '-1'], 'Error running bzr log')
|
output = self._bzr('log', self.branch_path, ['--line', '-r', '-1'], 'Error running bzr log')
|
||||||
revision = output.split(':')[0]
|
revision = output.split(':')[0]
|
||||||
self.version = '{tag}-bzr{revision}'.format(tag=tag, revision=revision)
|
self.version = '{tag}.dev{revision}'.format(tag=tag, revision=revision)
|
||||||
# Write the version to the version file
|
# Write the version to the version file
|
||||||
with open(os.path.join(self.dist_path, '.version'), 'w') as version_file:
|
with open(os.path.join(self.dist_path, '.version'), 'w') as version_file:
|
||||||
version_file.write(str(self.version))
|
version_file.write(str(self.version))
|
||||||
|
Loading…
Reference in New Issue
Block a user