diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-11-09 18:46:26 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-11-10 00:03:23 +0100 |
commit | 5c6e934b839a8b1462ecca4c687e263c85c4224b (patch) | |
tree | 2f6118879390fa0bdfbab7fa709baabfae8b2d93 | |
parent | f35b3fea46532ffc54e9026e7a953f64493e7525 (diff) |
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
-rwxr-xr-x | bin/get-bugzilla-attachments-by-mimetype | 41 |
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) |