# I am using the split-construct for performance, because that's the only way
# to get the bug number, without requesting a new object (t.bug.id)
package_bugnos = set([str(t).split("/")[-1] for t in package_col])
project_bugnos = set([str(t).split("/")[-1] for t in project_col])
# Now I just have to look at the intersection which is basically a
# product/source-package matching for the bugs that are fixed upstream
matches = package_bugnos.intersection(project_bugnos)
>>>
That's just an idea I had. I would appreciate feedback. Thanks.
Since I am still interested in this feature, I helped myself with the Launchpad API. It's basically the following (Example: "totem"):
>>> login_anonymous ly(...) s["ubuntu" ]
LP = Launchpad.
UBUNTU = LP.distribution
package = UBUNTU. getSourcePackag e(name= "totem" ) upstream_ product
project = package.
package_col = package. searchTasks( ) searchTasks( status= ["Fix Released", "Invalid"])
project_col = project.
# I am using the split-construct for performance, because that's the only way t).split( "/")[-1] for t in package_col]) t).split( "/")[-1] for t in project_col])
# to get the bug number, without requesting a new object (t.bug.id)
package_bugnos = set([str(
project_bugnos = set([str(
# Now I just have to look at the intersection which is basically a source- package matching for the bugs that are fixed upstream bugnos. intersection( project_ bugnos)
# product/
matches = package_
>>>
That's just an idea I had. I would appreciate feedback. Thanks.