From 8f5bc190f8283b8b3bbd9699dfab8a7dff1738b0 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Mon, 1 Mar 2010 16:13:57 +0100 Subject: [PATCH] Added more missing file extensions for the Python mimetypes module. --- patoolib/util.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/patoolib/util.py b/patoolib/util.py index cc50889..e6a7f61 100644 --- a/patoolib/util.py +++ b/patoolib/util.py @@ -32,6 +32,12 @@ mimedb.add_type('application/x-lzop', '.lzo', strict=False) mimedb.add_type('application/x-arj', '.arj', strict=False) mimedb.add_type('application/x-lzma', '.lzma', strict=False) mimedb.add_type('application/x-xz', '.xz', strict=False) +mimedb.add_type('application/java-archive', '.jar', strict=False) +mimedb.add_type('application/x-rar', '.rar', strict=False) +mimedb.add_type('application/x-7z-compressed', '.7z', strict=False) +mimedb.add_type('application/x-cab', '.cab', strict=False) +mimedb.add_type('application/x-rpm', '.rpm', strict=False) +mimedb.add_type('application/x-debian-package', '.deb', strict=False) class PatoolError (StandardError):