lp-project-upload: Use a milestone that already exists if there is

one to use.
This commit is contained in:
Stefano Rivera 2011-04-18 17:53:55 +02:00
commit 4dc91f0366
2 changed files with 10 additions and 1 deletions

6
debian/changelog vendored
View File

@ -21,7 +21,11 @@ ubuntu-dev-tools (0.121) UNRELEASED; urgency=low
* Bump Standards-Version to 3.9.2 (no changes required).
* Drop transitional qemu-kvm-extras-static from alternative suggests.
-- Benjamin Drung <bdrung@debian.org> Mon, 18 Apr 2011 14:52:41 +0200
[ Ted Gould ]
* lp-project-upload: Use a milestone that already exists if there is
one to use.
-- Ted Gould <ted@ubuntu.com> Mon, 18 Apr 2011 17:52:30 +0200
ubuntu-dev-tools (0.120) unstable; urgency=low

View File

@ -102,6 +102,11 @@ def main():
if rel.version == version:
release = rel
break
if not release:
for milestone in proj.all_milestones:
if milestone.name == version:
today = datetime.date.today().strftime('%Y-%m-%d')
release = milestone.createProductRelease(date_released=today)
if not release:
release = create_release(proj, version)