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 = Branch.open_containing('.')[0]
b.lock_read() b.lock_read()
try: try:
revno = b.revno()
# Add the latest tag in here too
verno = b.tags.get_tag_dict().keys()[0] verno = b.tags.get_tag_dict().keys()[0]
revno = b.revno()
finally: finally:
b.unlock() b.unlock()
except: except:
verno = '1.9.0'
revno = 0 revno = 0
version = '1.9.1-bzr%s' % revno version = '%s-bzr%s' % (verno, revno)
setup( setup(
name='OpenLP', name='OpenLP',