Commit Graph

67 Commits

Author SHA1 Message Date
Michael Stahl
56763e94bf get-bugzilla-attachments: actually use the fdo bugzilla
bugs.libreoffice.org redirects to bugs.documentfoundation.org,
which isn't very helpful as it just causes duplicate downloads.

Arguably freedesktop.org could be removed; the are just ~5 interesing
attachments since the TDF bugzilla migration.

Change-Id: I26d2667848582209e382226108c47549e99cee97
2015-06-04 21:53:38 +02:00
Michael Stahl
e5f9ee1847 get-bugzilla-attachments: avoid writing incomplete files
Change-Id: I7d1139ddf8c88626dd716aa537a305c31b5be5d9
2015-06-04 21:51:25 +02:00
Michael Stahl
bd2eee0bd4 get-bugzilla-attachments: avoid FDO-TDF duplicates...
... by checking that a file with "fdo" already exists for bugs older
than the migration, instead of just ignoring the old bugs on TDF.

There are > 300 additional attachments not on freedesktop.org.

Change-Id: Ib7ee63041109071cc1241a875ef2cccbddfc699d
2015-06-04 21:51:25 +02:00
Michael Stahl
0cfe2c8c89 get-bugzilla-attachments: fix the multi-threading
The queue was limited to an arbitrary maximum size, causing half of the
jobs to be droppend on the floor.  Also it didn't run on Python 3.

Change-Id: I90bfba448291d901c5a7c83389d17c6acdd919c8
2015-06-04 21:51:25 +02:00
Caolán McNamara
661791da72 add a bugzilla starting id and set it for tdf
to avoid downloading duplicate bugs from before the migration
to tdf

Change-Id: I6449e26708b2cb46c3a8829ba5ef8bd86ef072ae
2015-05-29 20:34:25 +01:00
David Tardon
a1202971e5 enable Apple Numbers import
Change-Id: I9aaa4ae2e567b54f15097c265a3d1c3c12662b92
2015-05-20 15:13:12 +02:00
David Tardon
d5ffc8b0ad enable Apple Pages import
Change-Id: I1ae1a09de43a2743d6bf9eba0c9a389b99bdfc67
2015-05-20 15:13:12 +02:00
Adolfo Jayme Barrientos
d02c15979b Update Apache Bugzilla’s URL
Change-Id: I6ef4ae530b7fb4e615100803ae6e3972d9b4545f
2015-05-19 19:48:11 -05:00
David Tardon
ca5479fb57 add space
Change-Id: I1ec18ded65b3359b71d97a733aab7f8b2a27e699
2015-02-01 19:01:59 +01:00
Jan Holesovsky
3b3b79bf00 More info about usage of get-bugzilla-attachments-by-mimetype.
Change-Id: Ia3f7c47b1fce782b5ec37ce28f1f3d452266ddcb
2015-01-27 13:34:45 +01:00
David Tardon
c3f96f3b95 add TDF bugzilla
Change-Id: Ic26ecbf8dc46e97c68cd1bfd639ad433f828cea6
2015-01-24 22:45:01 +01:00
Caolán McNamara
ed00d0ddd6 create a master document template type
of application/vnd.oasis.opendocument.text-master-template with
suffic otm

https://lists.oasis-open.org/archives/office-comment/201002/msg00042.html

desktop/icons/oasis-master-document-template.icns is just a copy
of
desktop/icons/oasis-master-document.icns
because I can't draw

Change-Id: I0d18c79c4c893e97505052884ee8be97d0f117a1
Reviewed-on: https://gerrit.libreoffice.org/11350
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-09-11 09:38:21 +00:00
David Tardon
114f3b83b9 drop binfilter formats
Change-Id: Iab1f526cfedf9a9f560b5d3e6dcd467dd178b508
2014-09-05 21:37:46 +02:00
David Tardon
2da5d3e555 also look for import libs in launchpad
Change-Id: I584d612063c9aa6fe472a1f829453511f94a1dbf
2014-09-05 21:37:45 +02:00
David Tardon
79a3d6d671 look for more apps in launchpad
Change-Id: Ie08099d09fd9852c0292a9e0457cdeff07881d4d
2014-09-05 21:37:45 +02:00
David Tardon
9a8281bdeb move the list of launchpad pkgs to a var.
Change-Id: Id8fed4516069e86b2fbee053e6681e145fdd4336
2014-09-05 21:37:45 +02:00
Caolán McNamara
7543a4165b fix indent to get this working again
Change-Id: If48dcf4d04d3888975687aa85557e2cee317f2dd
2014-08-20 10:18:42 +01:00
David Tardon
bba28baf8b download PageMaker files
Change-Id: I739f5f9b6f0e6a97832136812b289ae27cfaae37
2014-06-27 10:39:29 +02:00
David Tardon
516fb340b1 integrate libpagemaker
Change-Id: I077d7c9a41793abdf5f001386f44ac407f94a6d3
2014-06-27 10:39:29 +02:00
Caolán McNamara
b5fd106f93 add image/x-sun-raster mimetype
Change-Id: I6c53ec2ae15a68b9fa6bfd0daf81d6a21ca6c457
2014-04-16 20:26:42 +01:00
jorendc
06e9730b03 Add basic multi-threading for each mimetype
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>
2014-01-26 20:02:56 +00:00
David Tardon
21a36be172 add more graphics apps to launchpad list
Change-Id: I8f80b4aa07fd923aea4f50fd50d4ce68230cde06
2013-12-17 18:09:10 +01:00
David Tardon
49505e8f16 disable novell bz
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
2013-12-16 08:38:39 +01:00
David Tardon
af8191d2fa do not download html files from moz bz
Change-Id: I18519dd8ad0bdaac55a1d5bccdc30b943d717c9c
2013-12-13 09:34:57 +01:00
David Tardon
da97677684 print bug count in rss query too
Change-Id: I9542771fe3caf77757d81641752ab5463ead4deb
2013-12-07 16:37:04 +01:00
David Tardon
fa8d0cff3a put bz URLs into a list to avoid repeated code
Change-Id: Iade61f598e1122aae7667de684a68e8164817327
2013-12-07 16:37:04 +01:00
David Tardon
1ac7e39855 enable more bugzillas
Change-Id: If77b213deba85d49e1e8d09015fa81aa6df6aa94
2013-12-07 16:37:04 +01:00
David Tardon
93b6e31c70 try to minimize bugzilla queries
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
2013-12-07 16:37:04 +01:00
David Tardon
46ae91a266 fetch abiword bz attachments (for future use)
Change-Id: I8a18265ecd6a48f35980f335b2da5fe59958c02c
2013-12-05 14:36:20 +01:00
Michael Stahl
7ab15103b7 connectivity: use "application/x-dbase" for DBase files
... which is what we already use in calc.desktop; also
"application/dbaes" is not registered at IANA.

Change-Id: Ic2031a53e6620d10874df8882448497564962114
2013-11-23 16:03:11 +01:00
David Tardon
9635769f71 download fb2 files too
Change-Id: I0a18ad70620cfd4263ffd3bc1423e00205e98f9b
2013-11-20 10:41:49 +01:00
Andras Timar
1ba111343e bugs.freedesktop.org -> bugs.libreoffice.org
Change-Id: I56c1190c93333636981acf2dd271515170a8a904
2013-11-17 08:33:01 +01:00
David Tardon
d634d1a18a enable more useful formats
Change-Id: I790f0678a0fb06b3fd1babf499803b5250f23c1b
2013-11-13 15:50:34 +01:00
David Tardon
bd7a4db1dc add cmx
Change-Id: I8c0b422dc40188936b2473fed2e7a24ed36977e9
2013-11-13 12:16:03 +01:00
Michael Stahl
a3d8715bff get-bugzilla-attachments-by-mimetype: add libebook types
Change-Id: I963549beb45112504d5edfef169d4970fbec822d
2013-11-11 19:44:16 +01:00
Michael Stahl
d4fd1c0c38 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
2013-11-11 16:42:22 +01:00
Michael Stahl
bad960e65f get-bugzilla-attachments-by-mimetype: better test for existing file
Change-Id: I208a74d11945986d0712970999dbd33c03efe488
2013-11-11 16:42:21 +01:00
Michael Stahl
3e9d164a06 get-bugzilla-attachments-by-mimetype: add some missing mime types
... 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
2013-11-11 16:42:21 +01:00
Michael Stahl
fdb747ff8c get-bugzilla-attachments-by-mimetype: more Python 3 in exception handler
... and also fix the print functions that shouldn't output a newline.

Change-Id: Ifd866cb33b3ef9a2e83625ed03d5cb836c1ba56b
2013-11-11 16:42:21 +01:00
Michael Stahl
45beff50c9 get-bugzilla-attachments-by-mimetype: fix the lanuchpadlib mess
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
2013-11-10 00:03:23 +01:00
Michael Stahl
4855946a5e get-bugzilla-attachments-by-mimetype: make this run on Python 3
Change-Id: I27cf30c62122ea191c852a1a298a40ef64d35ba9
2013-11-10 00:03:23 +01:00
Michael Stahl
1b82dba6f7 get-bugzilla-attachments-by-mimetype: port to Python 3 syntax
Change-Id: I928eb1baa7390301036585d84895f44eb4c38d20
2013-11-10 00:03:23 +01:00
Michael Stahl
5c6e934b83 get-bugzilla-attachments-by-mimetype: IANA has 2 mime-types for WPD
... on https://www.iana.org/assignments/media-types/application

Also fix up the common_noncore_mimetypes while there.

Change-Id: I66eb74b0906a10893a771b7136b5f6ebda938ee6
2013-11-10 00:03:23 +01:00
Michael Meeks
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
Markus Mohrhard
d95e889dab add ms publisher file formats to get-bugzilla-attachments 2013-04-02 17:14:14 +02:00
Michael Stahl
6e18e1f54b get-bugzilla-attachments-by-mimetype: add "application/vnd.visio.xml"
Change-Id: I113f7bf3fd4194011efe83b1776ca42ad489f652
2013-02-25 14:27:07 +01:00
Caolán McNamara
ff7c116621 want to search for some sample pcts
Change-Id: I1e3c8e0994d17c6d5465fe63ab73f927e90c4991
2012-07-27 12:27:23 +01:00
Caolán McNamara
96215af8ad redhat bugzilla changed a bit
Change-Id: I95f0a96ac52ae929e20096d135207f8a0c040ca5
2012-07-27 12:27:23 +01:00
Caolán McNamara
64a111d684 rearrange order 2012-04-19 17:31:33 +01:00
Caolán McNamara
6066637320 we're more interested in getting emf/wmf samples than pdf 2012-04-19 17:31:32 +01:00