diff --git a/setup.py b/setup.py old mode 100644 new mode 100755 index 88881b3..fe1ae0f --- a/setup.py +++ b/setup.py @@ -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',