Kaydet (Commit) d4fd1c0c authored tarafından Michael Stahl's avatar Michael Stahl

get-bugzilla-attachments-by-mimetype: more launchpad fixes

- look at more interesting packages on lanuchpad, not just libreoffice.
- the searchTasks method by default does not return closed tasks,
  and there does not appear to be a documented wild card search,
  so stupidly enumerate all possible status.

Change-Id: I51691506874722a1d8eea4755513edf50164cf9d
üst bad960e6
......@@ -182,11 +182,12 @@ def get_launchpad_bugs(prefix):
ubuntu = launchpad.distributions["ubuntu"]
#since searching bugs having attachments with specific mimetypes is not available in launchpad API
#we're iterating over all bugs of the libreoffice source package
libo = ubuntu.getSourcePackage(name="libreoffice")
libobugs = libo.searchTasks()
#we're iterating over all bugs of the most interesting source packages
for pkg in ["libreoffice", "openoffice.org", "abiword", "gnumeric", "koffice", "calligra"]:
srcpkg = ubuntu.getSourcePackage(name=pkg)
pkgbugs = srcpkg.searchTasks(status=["New", "Fix Committed", "Invalid", "Won't Fix", "Confirmed", "Triaged", "In Progress", "Incomplete", "Incomplete (with response)", "Incomplete (without response)", "Fix Released", "Opinion", "Expired"])
for bugtask in libobugs:
for bugtask in pkgbugs:
bug = bugtask.bug
id = str(bug.id)
print("parsing " + id + " status: " + bugtask.status + " title: " + bug.title[:50])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment