mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
Append a1 to version number in pre-releases
This commit is contained in:
parent
3ac706401f
commit
b4a245b281
4
setup.py
Executable file → Normal file
4
setup.py
Executable file → Normal file
@ -9,9 +9,11 @@ import re
|
||||
changelog = "debian/changelog"
|
||||
if os.path.exists(changelog):
|
||||
head = open(changelog).readline()
|
||||
match = re.compile(".*\((.*)\).*").match(head)
|
||||
match = re.compile(r'.*\((.+)\)\s+(\S+);\s+.*').match(head)
|
||||
if match:
|
||||
version = match.group(1)
|
||||
if match.group(2) == 'UNRELEASED':
|
||||
version += 'a1'
|
||||
|
||||
scripts = ['404main',
|
||||
'backportpackage',
|
||||
|
Loading…
x
Reference in New Issue
Block a user