Yaroslav Halchenko
71f5e31dc3
Merge pull request #59 from yarikoptic/fixup/nested-gzip
...
Fixup/nested gzip
2018-09-12 08:55:09 -04:00
Charles LeDoux
eadc156170
Add tests for nested compression
...
Why:
* To ensure we don't try and unrar a rar.gz file.
This change addresses the need by:
* Adds test file archive.rar.gz
* Add mime check to ensure we get the mime of gzip, not rar.
2018-09-11 23:50:36 -04:00
Charles LeDoux
03018b4e5b
Only return separate encoding if `program_supports_compression`
...
Why:
* To prevent archives such as archive.rar.gz from breaking patool.
This change addresses the need by:
* move program_supports_compression above the `import util` line
* If we don't do this, we have a circular import.
* Import program_supports_compression into util.
* Only return separate mime and encoding if program_support_compression
returns True.
* Otherwise return the mime of the encoding and no encoding.
* Add fixes so that current tests still pass.
* In program_support_compression:
- Test tar separately and check all supported tar wrappers.
* In test_tar:
- Add file requirement for compress in the compress check.
- Otherwise tar tries and failes when compress isn't installed.
2018-09-11 23:50:36 -04:00
Yaroslav Halchenko
a9f3ee3d63
BF: add application/jar -> zip mapping
...
On Ubuntu 14.04 it is reported instead of /java-archive for .apk.foo which
we test on
2018-09-11 12:50:15 -04:00
Bastian Kleineidam
049ed12d43
Updated copyright
2016-01-09 21:09:27 +01:00
Bastian Kleineidam
06166e7b1d
Support comic book archives
2016-01-09 20:58:15 +01:00
Bastian Kleineidam
a2e096ae98
Add VHD support with 7z
2015-12-10 20:14:53 +01:00
Bastian Kleineidam
bd111dc7e2
Add new recompress command
2015-07-19 17:29:33 +02:00
Bastian Kleineidam
3b5a9f79ad
Support zpaq files.
2014-09-22 23:15:12 +02:00
Bastian Kleineidam
0c743e1248
Handle *.apk as ZIP files.
2014-06-27 21:12:52 +02:00
Bastian Kleineidam
8ae050701f
Handle *.epub files
2014-06-27 17:59:58 +02:00
Bastian Kleineidam
9f4f86928d
Updated copyright.
2014-03-30 10:00:10 +02:00
Bastian Kleineidam
d2b12f985e
Improve MIME detection of LZMA and LRZIP.
2013-07-16 20:14:19 +02:00
Bastian Kleineidam
7e9c672702
Accept application/gzip as MIME type for newer libmagic versions.
2013-06-27 22:16:55 +02:00
Bastian Kleineidam
b8425504c4
Add ISO image support.
2013-02-27 19:38:07 +01:00
Bastian Kleineidam
b982a5aba3
Remove .gitignore from deb package.
2013-02-22 18:31:33 +01:00
Bastian Kleineidam
eaf3aab677
Support archmage CHM files.
2012-11-19 22:27:54 +01:00
Bastian Kleineidam
be7d473b9e
Support ADF (.adf) Amiga disk file archives.
2012-08-03 22:26:40 +02:00
Bastian Kleineidam
8674b4281d
Use relative imports.
2012-05-26 22:05:40 +02:00
Bastian Kleineidam
14cfeb9607
Add support for shar and unshar.
2012-05-25 22:07:22 +02:00
Bastian Kleineidam
8ed2392f46
Fix test cases
2012-05-25 15:01:18 +02:00
Bastian Kleineidam
451f18a625
Fix tests.
2012-05-24 23:26:26 +02:00
Bastian Kleineidam
84dfa58d2e
Updated copyright.
2012-05-23 18:22:07 +02:00
Bastian Kleineidam
52762df5c6
Add flac file detection.
2012-05-17 14:59:33 +02:00
Bastian Kleineidam
448eb7c720
Add mime type for .shn files.
2012-05-17 14:11:36 +02:00
Bastian Kleineidam
66001fde36
Add boilerplate support for Monkey's Audio Compressors APE format.
2012-05-17 10:43:21 +02:00
Bastian Kleineidam
14641f8ea3
Updated copyright.
2011-01-25 06:57:30 -06:00
Bastian Kleineidam
e48b95f9f1
Support DMS (.dms) files.
2011-01-24 14:28:29 -06:00
Bastian Kleineidam
55f3716eb6
Fall back to file extension detection for MIME type when the uncompressor file(1) uses for compressed TAR archives is not installed.
2011-01-23 09:30:11 -06:00
Bastian Kleineidam
85f592b8ea
Added support for clzip.
2011-01-17 13:11:02 -06:00
Bastian Kleineidam
a4209f95ba
Add alternative ZIP mime type in tests.
2010-11-20 14:17:39 +01:00
Bastian Kleineidam
b9c208b402
Add space into 7z test filename.
2010-04-05 02:56:32 +02:00
Bastian Kleineidam
5223f93944
Renamed test file to be able to clone under Windows.
2010-04-05 02:27:42 +02:00
Bastian Kleineidam
6e2433aa00
Test shell quoting.
2010-04-04 20:28:37 +02:00
Bastian Kleineidam
554d273b08
Added support for ZOO (.zoo) archives.
2010-03-21 15:39:02 +01:00
Bastian Kleineidam
29598b32ea
Added MIME test for RZIP (.rz) files.
2010-03-21 09:51:37 +01:00
Bastian Kleineidam
cb10d09e6f
Allow mimedb tests to check with a list of MIME types, not only one.
2010-03-08 22:05:57 +01:00
Bastian Kleineidam
37fa891535
Added support for LRZIP (.lrz) files.
2010-03-08 19:58:39 +01:00
Bastian Kleineidam
4f12f39834
Added support for ARC (.arc) archives.
2010-03-08 18:28:11 +01:00
Bastian Kleineidam
acbf544d04
Added support for ALZIP (.alz) archives.
2010-03-06 21:35:03 +01:00
Bastian Kleineidam
960d15cd76
Refactor mime detection functions and add better tests.
2010-03-06 19:20:50 +01:00
Bastian Kleineidam
6cba779475
Added support for AR (.a) archives.
2010-03-06 16:52:13 +01:00
Bastian Kleineidam
9a04371f07
Added support for ACE (.ace) archives.
2010-03-06 15:47:00 +01:00
Bastian Kleineidam
cab43b1238
Added support for LZIP archives.
2010-03-04 16:42:37 +01:00
Bastian Kleineidam
778c1e366b
Port to Python 2.4: remove more relative imports.
2010-03-04 15:00:07 +01:00
Bastian Kleineidam
9f8c941e2a
Improved MIME test
2010-03-03 20:10:10 +01:00
Bastian Kleineidam
92eb057bcd
Added MIME regocnition test.
2010-03-03 11:34:48 +01:00