Reverted: r876: Append a1 to version number in pre-releases

This commit is contained in:
Stefano Rivera 2010-12-22 16:56:05 +02:00
parent c4de897e2a
commit 9ba4809eed

6
setup.py Normal file → Executable file
View File

@ -8,12 +8,10 @@ import re
# look/set what version we have
changelog = "debian/changelog"
if os.path.exists(changelog):
head = open(changelog).readline()
match = re.compile(r'.*\((.+)\)\s+(\S+);\s+.*').match(head)
head=open(changelog).readline()
match = re.compile(".*\((.*)\).*").match(head)
if match:
version = match.group(1)
if match.group(2) == 'UNRELEASED':
version += 'a1'
scripts = ['404main',
'backportpackage',