summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/get-bugzilla-attachments-by-mimetype41
1 files changed, 21 insertions, 20 deletions
diff --git a/bin/get-bugzilla-attachments-by-mimetype b/bin/get-bugzilla-attachments-by-mimetype
index 93928843c776..5c3de39d28fe 100755
--- a/bin/get-bugzilla-attachments-by-mimetype
+++ b/bin/get-bugzilla-attachments-by-mimetype
@@ -275,6 +275,7 @@ mimetypes = {
'application/vnd.lotus-wordpro': 'lwp',
'application/vnd.lotus-1-2-3': 'wks',
'application/vnd.wordperfect': 'wpd',
+ 'application/wordperfect5.1': 'wpd',
'application/vnd.ms-works': 'wps',
'application/x-hwp': 'hwp',
'application/x-aportisdoc': 'pdb',
@@ -308,28 +309,28 @@ mimetypes = {
}
# disabled for now, this would download gigs of pngs/jpegs...
-common_noncore_mimetypes = [
+common_noncore_mimetypes = {
# graphics
- ('image/svg+xml', 'svg'),
- ('image/x-MS-bmp', 'bmp'),
- ('image/x-wpg', 'wpg'),
- ('image/x-eps', 'eps'),
- ('image/x-met', 'met'),
- ('image/x-portable-bitmap', 'pbm'),
- ('image/x-photo-cd', 'pcd'),
- ('image/x-pcx', 'pcx'),
- ('image/x-portable-graymap', 'pgm'),
- ('image/x-portable-pixmap', 'ppm'),
- ('image/vnd.adobe.photoshop', 'psd'),
- ('image/x-cmu-raster', 'ras'),
- ('image/x-xbitmap', 'xbm'),
- ('image/x-xpixmap', 'xpm'),
- ('image/gif', 'gif'),
- ('image/jpeg', 'jpeg'),
- ('image/png', 'png'),
+ 'image/svg+xml': 'svg',
+ 'image/x-MS-bmp': 'bmp',
+ 'image/x-wpg': 'wpg',
+ 'image/x-eps': 'eps',
+ 'image/x-met': 'met',
+ 'image/x-portable-bitmap': 'pbm',
+ 'image/x-photo-cd': 'pcd',
+ 'image/x-pcx': 'pcx',
+ 'image/x-portable-graymap': 'pgm',
+ 'image/x-portable-pixmap': 'ppm',
+ 'image/vnd.adobe.photoshop': 'psd',
+ 'image/x-cmu-raster': 'ras',
+ 'image/x-xbitmap': 'xbm',
+ 'image/x-xpixmap': 'xpm',
+ 'image/gif': 'gif',
+ 'image/jpeg': 'jpeg',
+ 'image/png': 'png',
# pdf, etc.
- ('application/pdf', 'pdf'),
-]
+ 'application/pdf': 'pdf',
+}
for (mimetype,extension) in mimetypes.items():
get_through_rss_query(freedesktop, mimetype, "fdo", extension)