mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-11 08:51:29 +00:00
Correcly handle NEW package bug closing (the task dosen't have a distribuiton attribute)
This commit is contained in:
parent
165279fae9
commit
59b69d3767
@ -454,9 +454,9 @@ def close_bugs(bugs, package, version, changes):
|
|||||||
bug = bug.duplicate_of
|
bug = bug.duplicate_of
|
||||||
for task in bug.bug_tasks:
|
for task in bug.bug_tasks:
|
||||||
target = task.target
|
target = task.target
|
||||||
if getattr(target, 'distribution', None) != ubuntu:
|
if (target.name == package
|
||||||
continue
|
and getattr(target, 'distribution', None) == ubuntu
|
||||||
if target == ubuntu or target.name == package:
|
) or target == ubuntu:
|
||||||
if task.status != 'Fix Released':
|
if task.status != 'Fix Released':
|
||||||
Logger.normal("Closed bug %s", task.web_link)
|
Logger.normal("Closed bug %s", task.web_link)
|
||||||
task.status = 'Fix Released'
|
task.status = 'Fix Released'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user