diff --git a/debian/changelog b/debian/changelog index 89b8d03..a07da30 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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 Mon, 18 Apr 2011 17:52:30 +0200 ubuntu-dev-tools (0.120) unstable; urgency=low diff --git a/lp-project-upload b/lp-project-upload index 7931f2c..2e1fcb3 100755 --- a/lp-project-upload +++ b/lp-project-upload @@ -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)