fixed version number

This commit is contained in:
Andreas Preikschat 2013-07-19 18:07:33 +02:00
parent e32f0869cc
commit d5b0f3ac9a
1 changed files with 2 additions and 1 deletions

View File

@ -107,6 +107,7 @@ def get_application_version():
# Get the revision of this tree.
bzr = Popen((u'bzr', u'revno'), stdout=PIPE)
tree_revision, error = bzr.communicate()
tree_revision = tree_revision.decode()
code = bzr.wait()
if code != 0:
raise Exception(u'Error running bzr log')
@ -117,7 +118,7 @@ def get_application_version():
code = bzr.wait()
if code != 0:
raise Exception(u'Error running bzr tags')
tags = output.splitlines()
tags = map(bytes.decode, output.splitlines())
if not tags:
tag_version = u'0.0.0'
tag_revision = u'0'