Only remote task is picked
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-launchpad-bugs |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Just checking with this simple script:
#!/usr/bin/python
import launchpadbugs.
import os
def main():
BugList = Connector.
for bug in BugList("https:/
print bug.bugnumber, bug.sourcepackage
if __name__ == "__main__":
main()
for a page with (amongst others) these two bugs:
(unknown) 131325 Gutsy uses old version of conky. conky (Debian) Unknown New
(wishlist) 131325 Gutsy uses old version of conky. conky (Ubuntu) Wishlist Fix Committed
Only the Debian bug is picked (see attached output).
Changed in python-launchpad-bugs: | |
status: | New → Fix Committed |
Effectively BugList represents every unique bug. So the data structure of a set() makes perfect sense. Right now using BugInfo will represent the different tasks. I agree that this is somewhat irksome and requires to not only download the buglist, but also the bug.
To fix this bug, I propose to add an attribute to bugs in the buglist named .affects -- using it in pseudo-code could look like this:
for b in buglist: if 'Ubuntu' in b.affects: ...