Commit 34eeaf47 authored by Brian White's avatar Brian White

git-debimport mime-support_3.38-1.tar.gz

parent 14a9bf8b
mime-support (3.38-1) unstable; urgency=medium
* changed RTF type to "application/rtf" (closes: #387262)
* added new mime.types (closes: #379838, #379504, #389168, #391928)
* added protection against writing bad mailcap file (closes: #400659)
-- Brian White <bcwhite@pobox.com> Mon, 4 Dec 2006 15:45:37 -0500
mime-support (3.37-1) unstable; urgency=medium
* added new mime.types (closes: #364831, #370344, #360038)
......
......@@ -101,7 +101,7 @@ application/rdf+xml rdf
application/remote-printing
application/riscos
application/rss+xml rss
application/rtf
application/rtf rtf
application/sdp
application/set-payment
application/set-payment-initiation
......@@ -266,20 +266,20 @@ application/vnd.noblenet-web
application/vnd.novadigm.EDM
application/vnd.novadigm.EDX
application/vnd.novadigm.EXT
application/vnd.oasis.opendocument.chart odc
application/vnd.oasis.opendocument.database odb
application/vnd.oasis.opendocument.formula odf
application/vnd.oasis.opendocument.graphics odg
application/vnd.oasis.opendocument.graphics-template otg
application/vnd.oasis.opendocument.image odi
application/vnd.oasis.opendocument.presentation odp
application/vnd.oasis.opendocument.presentation-template otp
application/vnd.oasis.opendocument.spreadsheet ods
application/vnd.oasis.opendocument.spreadsheet-template ots
application/vnd.oasis.opendocument.text odt
application/vnd.oasis.opendocument.text-master odm
application/vnd.oasis.opendocument.text-template ott
application/vnd.oasis.opendocument.text-web oth
application/vnd.oasis.opendocument.chart odc
application/vnd.oasis.opendocument.database odb
application/vnd.oasis.opendocument.formula odf
application/vnd.oasis.opendocument.graphics odg
application/vnd.oasis.opendocument.graphics-template otg
application/vnd.oasis.opendocument.image odi
application/vnd.oasis.opendocument.presentation odp
application/vnd.oasis.opendocument.presentation-template otp
application/vnd.oasis.opendocument.spreadsheet ods
application/vnd.oasis.opendocument.spreadsheet-template ots
application/vnd.oasis.opendocument.text odt
application/vnd.oasis.opendocument.text-master odm
application/vnd.oasis.opendocument.text-template ott
application/vnd.oasis.opendocument.text-web oth
application/vnd.osa.netdeploy
application/vnd.palm
application/vnd.pg.format
......@@ -306,11 +306,12 @@ application/vnd.smaf mmf
application/vnd.sss-cod
application/vnd.sss-dtf
application/vnd.sss-ntf
application/vnd.stardivision.chart sdc
application/vnd.stardivision.calc sdc
application/vnd.stardivision.chart sds
application/vnd.stardivision.draw sda
application/vnd.stardivision.impress sdd sdp
application/vnd.stardivision.math smf
application/vnd.stardivision.writer sdw vor
application/vnd.stardivision.impress sdd
application/vnd.stardivision.math sdf
application/vnd.stardivision.writer sdw
application/vnd.stardivision.writer-global sgl
application/vnd.street-stream
application/vnd.sun.xml.calc sxc
......@@ -319,9 +320,9 @@ application/vnd.sun.xml.draw sxd
application/vnd.sun.xml.draw.template std
application/vnd.sun.xml.impress sxi
application/vnd.sun.xml.impress.template sti
application/vnd.sun.xml.math sxm
application/vnd.sun.xml.writer sxw
application/vnd.sun.xml.writer.global sxg
application/vnd.sun.xml.writer.math sxm
application/vnd.sun.xml.writer.template stw
application/vnd.svd
application/vnd.swiftview-ics
......@@ -366,6 +367,7 @@ application/x-abiword abw
application/x-apple-diskimage dmg
application/x-bcpio bcpio
application/x-bittorrent torrent
application/x-cab cab
application/x-cbr cbr
application/x-cbz cbz
application/x-cdf cdf
......@@ -379,6 +381,7 @@ application/x-director dcr dir dxr
application/x-dms dms
application/x-doom wad
application/x-dvi dvi
application/x-httpd-eruby rhtml
application/x-executable
application/x-flac flac
application/x-font pfa pfb gsf pcf pcf.Z
......@@ -656,7 +659,7 @@ text/plain asc txt text diff pot
text/prs.lines.tag
text/rfc822-headers
text/richtext rtx
text/rtf rtf
text/rtf
text/scriptlet sct wsc
text/t140
text/texmacs tm ts
......@@ -737,4 +740,5 @@ video/x-sgi-movie movie
x-conference/x-cooltalk ice
x-epoc/x-sisx-app sisx
x-world/x-vrml vrm vrml wrl
......@@ -214,22 +214,30 @@ sub UpdateMailcap
close PATH;
if ($state == 3) {
if (!open(PATH,">$mailcap.new")) {
print STDERR "Error: could not write '$mailcap.new' -- $!\n";
exit(1) unless ($debug);
open(PATH,">-");
}
print PATH @above;
print PATH @user;
print PATH @below;
print PATH "\n###############################################################################\n\n";
my $newfile = join('',@above,@user,@below);
$newfile .= "\n###############################################################################\n\n";
foreach $entrycode (@entrylist) {
my $entry = $entries{$entrycode};
$entry =~ s/\s*priority\s*=\s*\d+\s*($|;)//;
$entry =~ s/\s*;\s*$//;
print PATH $entry,"\n";
$newfile .= $entry."\n";
}
if (!open(PATH,">$mailcap.new")) {
print STDERR "Error: could not write '$mailcap.new' -- $!\n";
exit(1) unless ($debug);
open(PATH,">-");
}
print PATH $newfile;
close PATH;
if (!open(PATH,"<$mailcap.new")) {
die "Error: could not read generated '$mailcap.new' -- $!\n";
}
my $savfile = "";
$savfile .= $_ while (<PATH>);
if ($savfile ne $newfile) {
die "Error: contents of '$mailcap.new' do not match what was written -- abort\n";
}
rename "$mailcap.new","$mailcap";
} else {
print STDERR "Error: '$mailcap' is not in required format -- not updated\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment