bin/get-bugzilla-attachments-by-mimetype | 49 +++++++++++++++++++------------ 1 file changed, 31 insertions(+), 18 deletions(-)
New commits: commit 114f3b83b9f850abf57f86836bbc579c4d41aaca Author: David Tardon <[email protected]> Date: Fri Sep 5 17:54:10 2014 +0200 drop binfilter formats Change-Id: Iab1f526cfedf9a9f560b5d3e6dcd467dd178b508 diff --git a/bin/get-bugzilla-attachments-by-mimetype b/bin/get-bugzilla-attachments-by-mimetype index fa30041..6f72dc7 100755 --- a/bin/get-bugzilla-attachments-by-mimetype +++ b/bin/get-bugzilla-attachments-by-mimetype @@ -427,21 +427,6 @@ mimetypes = { 'application/x-fictionbook+xml': 'fb2', 'application/x-abiword': 'abw', 'application/x-pagemaker': 'pmd', -# binfilter - 'application/x-starcalc': 'sdc', - 'application/vnd.stardivision.calc': 'sdc5', - 'application/x-starchart': 'sds', - 'application/vnd.stardivision.chart': 'sds5', - 'application/x-stardraw': 'sdd_d', - 'application/vnd.stardivision.draw': 'sda5', - 'application/x-starimpress': 'sdd_i', - 'application/vnd.stardivision.impress': 'sdd5', - 'application/vnd.stardivision.impress-packed': 'sdp5', - 'application/x-starmath': 'smf', - 'application/vnd.stardivision.math': 'smf5', - 'application/x-starwriter': 'sdw', - 'application/vnd.stardivision.writer': 'sdw5', - 'application/vnd.stardivision.writer-global': 'sgl5', # relatively uncommon image mimetypes 'image/x-freehand': 'fh', 'image/cgm': 'cgm', commit 2da5d3e555f75240331297cb3f334212ce7839c4 Author: David Tardon <[email protected]> Date: Fri Sep 5 18:08:01 2014 +0200 also look for import libs in launchpad Change-Id: I584d612063c9aa6fe472a1f829453511f94a1dbf diff --git a/bin/get-bugzilla-attachments-by-mimetype b/bin/get-bugzilla-attachments-by-mimetype index eef9b0f..fa30041 100755 --- a/bin/get-bugzilla-attachments-by-mimetype +++ b/bin/get-bugzilla-attachments-by-mimetype @@ -248,8 +248,22 @@ launchpad_pkgs = ( "gnumeric", "inkscape", "koffice", + "libabw", + "libcdr", + "libe-book", + "libetonyek", + "libfreehand", + "libmspub", + "libmwaw", + "liborcus", + "libpagemaker", "libreoffice", + "libvisio", + "libwpd", + "libwpg", + "libwps", "openoffice.org", + "python-uniconvertor", "scribus", "sk1", "unoconv", commit 79a3d6d671055c9de1359c074b6c8b31536e51c9 Author: David Tardon <[email protected]> Date: Fri Sep 5 17:50:48 2014 +0200 look for more apps in launchpad Change-Id: Ie08099d09fd9852c0292a9e0457cdeff07881d4d diff --git a/bin/get-bugzilla-attachments-by-mimetype b/bin/get-bugzilla-attachments-by-mimetype index 0600ac5..eef9b0f 100755 --- a/bin/get-bugzilla-attachments-by-mimetype +++ b/bin/get-bugzilla-attachments-by-mimetype @@ -243,13 +243,16 @@ def get_through_rss_query(queryurl, mimetype, prefix, suffix): #we're iterating over all bugs of the most interesting source packages launchpad_pkgs = ( "abiword", + "calibre", "calligra", "gnumeric", "inkscape", "koffice", "libreoffice", "openoffice.org", + "scribus", "sk1", + "unoconv", ) def get_launchpad_bugs(prefix): commit 9a8281bdeb9dad571de33fc83ad82ff62a94244e Author: David Tardon <[email protected]> Date: Fri Sep 5 17:50:24 2014 +0200 move the list of launchpad pkgs to a var. Change-Id: Id8fed4516069e86b2fbee053e6681e145fdd4336 diff --git a/bin/get-bugzilla-attachments-by-mimetype b/bin/get-bugzilla-attachments-by-mimetype index ef44dbd..0600ac5 100755 --- a/bin/get-bugzilla-attachments-by-mimetype +++ b/bin/get-bugzilla-attachments-by-mimetype @@ -239,6 +239,19 @@ def get_through_rss_query(queryurl, mimetype, prefix, suffix): print('looking for all bugs having %s attachment(s)' % mimetype) process(query, True, get_file_bz_ids(files, prefix)) +#since searching bugs having attachments with specific mimetypes is not available in launchpad API +#we're iterating over all bugs of the most interesting source packages +launchpad_pkgs = ( + "abiword", + "calligra", + "gnumeric", + "inkscape", + "koffice", + "libreoffice", + "openoffice.org", + "sk1", +) + def get_launchpad_bugs(prefix): #launchpadlib python module is required to download launchpad attachments from launchpadlib.launchpad import Launchpad @@ -246,9 +259,7 @@ def get_launchpad_bugs(prefix): launchpad = Launchpad.login_anonymously("attachmentdownload", "production") 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 most interesting source packages - for pkg in ["libreoffice", "openoffice.org", "abiword", "gnumeric", "koffice", "calligra", "inkscape", "sk1"]: + for pkg in launchpad_pkgs: 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"]) _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
