sponsor-patch: Don't fall over bugs targetted at the development release

(LP: #936014)
This commit is contained in:
Stefano Rivera 2012-08-17 22:44:21 +02:00
parent f29e729852
commit e30a6e51a7
2 changed files with 5 additions and 0 deletions

2
debian/changelog vendored
View File

@ -15,6 +15,8 @@ ubuntu-dev-tools (0.144) UNRELEASED; urgency=low
- Avoid duplicate Reverse-Build-Deps when sources build binaries of the
same name.
- Explain that backports aren't to fix bugs.
* sponsor-patch: Don't fall over bugs targetted at the development release
(LP: #936014)
[ Benjamin Drung ]
* seeded-in-ubuntu: State in error message that it takes a source package.

View File

@ -202,6 +202,9 @@ def get_open_ubuntu_bug_task(launchpad, bug, branch=None):
tasks = [task for task in ubuntu_tasks
if task.get_series() == branch[2]
and task.package == branch[3]]
if len(tasks) > 1:
# A bug targetted to the development series?
tasks = [task for task in tasks if task.series is not None]
assert len(tasks) == 1
task = tasks[0]
elif len(ubuntu_tasks) > 1: