Commit febbc84b authored by Brian White's avatar Brian White

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

parent a0d9bcc2
mime-support (3.36-1) unstable; urgency=medium
* added .eml, 3gp, and 7z mime types
* new returns non-zero exit code if can't handle file (closes: #313640)
* added new mime.types (closes: #316200, #329208)
-- Brian White <bcwhite@pobox.com> Thu, 2 Mar 2006 20:09:20 -0500
mime-support (3.35-1) unstable; urgency=high
* added .htc type so apache will serve to WinXP-sp2
......
......@@ -68,6 +68,7 @@ application/macwriteii
application/marc
application/mathematica nb
application/mathematica-old
application/ms-tnef
application/msaccess mdb
application/msword doc dot
application/news-message-id
......@@ -357,6 +358,7 @@ application/vnd.xara
application/vnd.xfdl
application/vnd.yellowriver-custom-menu
application/x-123 wk
application/x-7z-compressed 7z
application/x-abiword abw
application/x-apple-diskimage dmg
application/x-bcpio bcpio
......@@ -428,7 +430,7 @@ application/x-sh sh
application/x-shar shar
application/x-shellscript
application/x-shockwave-flash swf swfl
application/x-stuffit sit
application/x-stuffit sit sitx
application/x-sv4cpio sv4cpio
application/x-sv4crc sv4crc
application/x-tar tar
......@@ -451,6 +453,7 @@ application/x-xfig fig
application/x-xpinstall xpi
audio/32kadpcm
audio/3gpp
audio/basic au snd
audio/g.722.1
audio/l16
......@@ -605,7 +608,7 @@ message/http
message/s-http
message/news
message/partial
message/rfc822
message/rfc822 eml
model/iges igs iges
model/mesh msh mesh silo
......@@ -698,6 +701,7 @@ text/x-tex tex ltx sty cls
text/x-vcalendar vcs
text/x-vcard vcf
video/3gpp 3gp
video/dl dl
video/dv dif dv
video/fli fli
......
......@@ -19,6 +19,7 @@ $xtermprgrm="/usr/bin/x-terminal-emulator"; # xterm?
$defmimetyp="application/*";
$quotedsemi=chr(255);
$quotedprct=chr(254);
$retcode=0;
%patterntypes =
......@@ -212,6 +213,7 @@ sub DecodeFile {
$res = int($res/256);
if ($res != 0) {
print STDERR "Error: could not decode \"$efile\" -- $!\n";
$retcode = 2 if ($retcode < 2);
unlink($tmpfile);
return;
}
......@@ -247,6 +249,7 @@ sub EncodeFile {
$res = int($res/256);
if ($res != 0) {
print STDERR "Error: could not encode \"$efile\" (left as \"$dfile\")\n";
$retcode = 2 if ($retcode < 2);
return;
}
......@@ -359,7 +362,6 @@ foreach (split(/:/,$mailcaps)) {
ReadMailcap($_);
}
$retcode = 0;
foreach (@files) {
my($type,$code,$file) = m/^(.*?):(.*?):(.*)$/;
print STDERR "Processing file \"$file\" of type \"$type\" (encoding=",$code?$code:"none",")...\n" if $debug;
......@@ -369,6 +371,7 @@ foreach (@files) {
if (-e $file) {
if (! -w $file) {
print STDERR "Error: no write permission for file \"$file\"\n";
$retcode = 2 if ($retcode < 2);
next;
}
} else {
......@@ -377,16 +380,19 @@ foreach (@files) {
unlink($file);
} else {
print STDERR "Error: no write permission for file \"$file\"\n";
$retcode = 2 if ($retcode < 2);
next;
}
}
} else {
if (! -e $file) {
print STDERR "Error: no such file \"$file\"\n";
$retcode = 2 if ($retcode < 2);
next;
}
if (! -r $file) {
print STDERR "Error: no read permission for file \"$file\"\n";
$retcode = 2 if ($retcode < 2);
next;
}
}
......@@ -509,8 +515,10 @@ foreach (@files) {
if ($fail) {
print STDERR "Error: no \"$action\" rule for type \"$type\" passed its test case\n";
print STDERR " (for more information, add \"--debug=1\" on the command line)\n";
$retcode = 3 if ($retcode < 3);
} else {
print STDERR "Error: no \"$action\" mailcap rules found for type \"$type\"\n";
$retcode = 3 if ($retcode < 3);
}
unlink $file if $code;
$retcode = 1 unless $retcode;
......
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