summaryrefslogtreecommitdiffstats
path: root/bin/get-bugzilla-attachments-by-mimetype
Commit message (Collapse)AuthorAgeFilesLines
* Add basic multi-threading for each mimetypejorendc2014-01-261-8/+50
| | | | | | | Change-Id: Ife0766ddd259bb7d86a9c7bdcf3e9c2849208cf0 Reviewed-on: https://gerrit.libreoffice.org/7123 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* add more graphics apps to launchpad listDavid Tardon2013-12-171-1/+1
| | | | Change-Id: I8f80b4aa07fd923aea4f50fd50d4ce68230cde06
* disable novell bzDavid Tardon2013-12-161-1/+5
| | | | | | | Apparently it is no longer possible to get files from it. (Of course, if that only needs some tweaks in the script, fixes are welcome :-) Change-Id: I29d63d3246ab53d8ce15fc0969fccc8a064c6e5b
* do not download html files from moz bzDavid Tardon2013-12-131-0/+5
| | | | Change-Id: I18519dd8ad0bdaac55a1d5bccdc30b943d717c9c
* print bug count in rss query tooDavid Tardon2013-12-071-0/+1
| | | | Change-Id: I9542771fe3caf77757d81641752ab5463ead4deb
* put bz URLs into a list to avoid repeated codeDavid Tardon2013-12-071-35/+15
| | | | Change-Id: Iade61f598e1122aae7667de684a68e8164817327
* enable more bugzillasDavid Tardon2013-12-071-0/+11
| | | | Change-Id: If77b213deba85d49e1e8d09015fa81aa6df6aa94
* try to minimize bugzilla queriesDavid Tardon2013-12-071-104/+167
| | | | | | | | | | | | | | | | This attempts to solve several deficiencies in the script: 1. If the first attachment of a bug is already downloaded, the bug is not checked for newly added attachments (or attachments with newly fixed mimetype). 2. If neither of the eligible attachment(s) of a bug is the first attachment, the bug will be processed (and the attachment downloaded) time and again (because the shortcut is only applied for the first attachment, see 1). But it also ensures that if the script is killed, the download is restarted on the next run. Change-Id: I7f3d1922825bb314f96ec3b1ee2a0ac47604b018
* fetch abiword bz attachments (for future use)David Tardon2013-12-051-0/+1
| | | | Change-Id: I8a18265ecd6a48f35980f335b2da5fe59958c02c
* connectivity: use "application/x-dbase" for DBase filesMichael Stahl2013-11-231-0/+1
| | | | | | | ... which is what we already use in calc.desktop; also "application/dbaes" is not registered at IANA. Change-Id: Ic2031a53e6620d10874df8882448497564962114
* download fb2 files tooDavid Tardon2013-11-201-0/+1
| | | | Change-Id: I0a18ad70620cfd4263ffd3bc1423e00205e98f9b
* bugs.freedesktop.org -> bugs.libreoffice.orgAndras Timar2013-11-171-1/+1
| | | | Change-Id: I56c1190c93333636981acf2dd271515170a8a904
* enable more useful formatsDavid Tardon2013-11-131-5/+5
| | | | Change-Id: I790f0678a0fb06b3fd1babf499803b5250f23c1b
* add cmxDavid Tardon2013-11-131-0/+1
| | | | Change-Id: I8c0b422dc40188936b2473fed2e7a24ed36977e9
* get-bugzilla-attachments-by-mimetype: add libebook typesMichael Stahl2013-11-111-0/+3
| | | | Change-Id: I963549beb45112504d5edfef169d4970fbec822d
* get-bugzilla-attachments-by-mimetype: more launchpad fixesMichael Stahl2013-11-111-32/+33
| | | | | | | | | - 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
* get-bugzilla-attachments-by-mimetype: better test for existing fileMichael Stahl2013-11-111-1/+5
| | | | Change-Id: I208a74d11945986d0712970999dbd33c03efe488
* get-bugzilla-attachments-by-mimetype: add some missing mime typesMichael Stahl2013-11-111-0/+16
| | | | | | | | | | | | ... which are officially registered on https://www.iana.org/assignments/media-types/application ... plus some more non-standard ones for FreeHand, Keynote, ClarisWorks. For Apple Keynote there are 2 different ones that appear to be widely used. Change-Id: I26d4a85733a744188cc87a78fdba0d9d3f44da96
* get-bugzilla-attachments-by-mimetype: more Python 3 in exception handlerMichael Stahl2013-11-111-7/+8
| | | | | | ... and also fix the print functions that shouldn't output a newline. Change-Id: Ifd866cb33b3ef9a2e83625ed03d5cb836c1ba56b
* get-bugzilla-attachments-by-mimetype: fix the lanuchpadlib messMichael Stahl2013-11-101-1/+1
| | | | | | | | | | | Apparently somebody found it a good idea to remove the getBugTasks() method. Also the darn thing won't run on Python 3. So apparently it's mostly unmaintained, except that functions that we need are removed. For future reference: it can be installed on non-Ubuntu systems by: pip install -v --user launchpadlib Change-Id: Ib7b0a46011dffcfe091f5bb73ed19b9dc311046c
* get-bugzilla-attachments-by-mimetype: make this run on Python 3Michael Stahl2013-11-101-6/+22
| | | | Change-Id: I27cf30c62122ea191c852a1a298a40ef64d35ba9
* get-bugzilla-attachments-by-mimetype: port to Python 3 syntaxMichael Stahl2013-11-101-30/+30
| | | | Change-Id: I928eb1baa7390301036585d84895f44eb4c38d20
* get-bugzilla-attachments-by-mimetype: IANA has 2 mime-types for WPDMichael Stahl2013-11-101-20/+21
| | | | | | | | ... on https://www.iana.org/assignments/media-types/application Also fix up the common_noncore_mimetypes while there. Change-Id: I66eb74b0906a10893a771b7136b5f6ebda938ee6
* Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks2013-04-221-22/+4
|
* add ms publisher file formats to get-bugzilla-attachmentsMarkus Mohrhard2013-04-021-0/+1
|
* get-bugzilla-attachments-by-mimetype: add "application/vnd.visio.xml"Michael Stahl2013-02-251-0/+1
| | | | Change-Id: I113f7bf3fd4194011efe83b1776ca42ad489f652
* want to search for some sample pctsCaolán McNamara2012-07-271-1/+1
| | | | Change-Id: I1e3c8e0994d17c6d5465fe63ab73f927e90c4991
* redhat bugzilla changed a bitCaolán McNamara2012-07-271-1/+1
| | | | Change-Id: I95f0a96ac52ae929e20096d135207f8a0c040ca5
* rearrange orderCaolán McNamara2012-04-191-7/+7
|
* we're more interested in getting emf/wmf samples than pdfCaolán McNamara2012-04-191-10/+14
|
* sigh, need import sysCaolán McNamara2012-04-191-0/+1
|
* use stdout for errors like everything elseCaolán McNamara2012-04-181-1/+1
|
* continue in the face of adversaryCaolán McNamara2012-04-181-1/+5
|
* Fix handling of deleted bugzilla attachmentsGökçen Eraslan2012-04-171-0/+5
| | | | | As in https://bugs.kde.org/show_bug.cgi?ctype=xml&id=53343 <data> tag may not have a value if the attachment is deleted.
* attachmentid should be stable across mime-type changesCaolán McNamara2012-04-171-7/+9
|
* fdo#46538 Easyhack: Add support for more bug trackers to ↵Gökçen Eraslan2012-04-171-87/+191
| | | | | | | | | | | | | | | | | | | | | | get-bugzilla-attachments-by-mimetype This adds support for Novell, KDE (for KOffice/Calligra), GNOME (for Gnumeric), AbiSource (for AbiWord) bugzillas and Launchpad to bin/get-bugzilla-attachments-by-mimetype script as required by easyhack#46538. However, there two glitches and workarounds: 1- As stated in the code, Novell bugzilla requires users to log in to bugzilla in order to get full information about the bugs such as attachment bodies etc. Since Novell bugzilla uses some proprietary login extensions it's hard to implement log in mechanism and use it via xmlrpc API. python-bugzilla claims that it supports Novell bugzilla login but I could not make it work. As a workaround, comments containing "Created an attachment (id=xxxxxxx)" pattern are parsed and attachments are downloaded using urllib. Attachments are filtered using mimetype info obtained from http headers. 2- For launchpad, launchpadlib python module is used. But currently launchpad api does not support really advanced search like bugzilla. For example, it's not possible to search for bugs having application/pdf attachments. So, again a workaround is used. Code iterates over all the bugs of the *libreoffice* source package and check their attachments.
* download some unusual image mimetypes by defaultCaolán McNamara2012-03-201-3/+4
|
* update to point to moved openoffice.org bugzillaCaolán McNamara2012-03-201-1/+1
|
* cgms are image/cgmCaolán McNamara2012-03-201-0/+1
|
* attachmentid should be stable across mime-type changesCaolán McNamara2012-03-071-1/+1
|
* get-bugzilla-attachments-by-mimetype: add retry:Michael Stahl2012-02-131-2/+13
| | | | | Sadly the Apache OO bugzilla is rather unreliable and connections time out a lot; retry connections to work around that.
* get-bugzilla-attachments-by-mimetype: don't do images:Michael Stahl2012-02-131-0/+4
| | | | | What a stupid idea; what the heck do i do now with 5G of jpegs and pngs on my disk?
* get-bugzilla-attachments-by-mimetype: more mimetypesMichael Stahl2012-02-131-2/+104
|
* get-bugzilla-attachments-by-mimetype: deduplicateMichael Stahl2012-02-131-15/+14
|
* get-bugzilla-attachments-by-mimetype: fix itMichael Stahl2012-02-131-1/+2
|
* normalize Red Hat, Inc. spellings, and bump to latest templateCaolán McNamara2011-12-061-8/+4
|
* add script to download documents from various bugzillasCaolán McNamara2011-11-141-0/+141