Pull the version number from the tag.

This commit is contained in:
Raoul Snyman 2010-02-19 21:17:32 +02:00
parent 77e55da0d3
commit 7efd037024
1 changed files with 3 additions and 3 deletions

View File

@ -8,15 +8,15 @@ try:
b = Branch.open_containing('.')[0]
b.lock_read()
try:
revno = b.revno()
# Add the latest tag in here too
verno = b.tags.get_tag_dict().keys()[0]
revno = b.revno()
finally:
b.unlock()
except:
verno = '1.9.0'
revno = 0
version = '1.9.1-bzr%s' % revno
version = '%s-bzr%s' % (verno, revno)
setup(
name='OpenLP',