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
Bastian Kleineidam
d7c0bfa3a5
Add WinRAR to default search path on windows.
2016-01-14 21:09:18 +01: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
5f1ade68be
Fix copying on Windows systems.
2015-12-07 19:49:54 +01:00
Bastian Kleineidam
8446298844
Revert output escaping since it broke Python 3 tests.
2015-12-06 07:05:29 +01:00
Bastian Kleineidam
d293404cd0
Replace invlid output before logging it
2015-12-05 13:00:57 +01:00
Vitaly Lipatov
d01d6c738f
improve paths to lib dirs for RAR plugins search
2015-11-21 14:14:11 +03: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
e8dc5e853e
Search /usr/local/lib for p7zip RAR modules. See issue #10
2014-06-08 10:25:52 +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
cf3472b5ef
Fix docs
2013-06-27 22:23:52 +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
d0540bb7a7
Generate metadata as python module.
2013-04-08 20:12:50 +02:00
Bastian Kleineidam
e5a4d8b317
Use shutil.which() and fix version.
2013-04-08 18:26:10 +02:00
Bastian Kleineidam
a1a51708b5
Add .iso mime type.
2013-02-27 21:18:56 +01:00
Bastian Kleineidam
cee88ecb60
Replace baker with argparse; some code restructuration.
2013-02-25 21:04:02 +01:00
Bastian Kleineidam
70fb808dae
Decode command output. Fixes Python3 test cases.
2013-02-23 13:36:46 +01:00
Bastian Kleineidam
b11498e8aa
Add chdir utility function.
2013-02-22 18:33:38 +01:00
Bastian Kleineidam
69ce2740ca
Optimize repack command.
2013-02-21 17:51:34 +01:00
Bastian Kleineidam
c0751a56d7
Updated copyright.
2013-02-20 21:04:48 +01:00
Bastian Kleineidam
bf1e937db4
Build and documentation updates
2012-12-17 20:13:55 +01:00
Bastian Kleineidam
eaf3aab677
Support archmage CHM files.
2012-11-19 22:27:54 +01:00
Bastian Kleineidam
d7f453cc34
Add Python3 support.
2012-11-19 20:58:42 +01:00
Bastian Kleineidam
be7d473b9e
Support ADF (.adf) Amiga disk file archives.
2012-08-03 22:26:40 +02:00
Bastian Kleineidam
e65fff3f7f
Require and use Python >= 2.5
2012-05-25 22:15:29 +02:00
Bastian Kleineidam
14cfeb9607
Add support for shar and unshar.
2012-05-25 22:07:22 +02:00
Bastian Kleineidam
c5f1dc543b
Code cleanup.
2012-05-25 15:01:33 +02:00
Bastian Kleineidam
087b7e100e
Init the MIME db correct on all platforms.
2012-05-23 04:47:26 +02:00
Bastian Kleineidam
edb528dc88
Add .flac extension mime type.
2012-05-18 21:12:58 +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
1cb49aa296
Add support for APE format.
2012-05-17 11:01:06 +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
79a376ce4e
Rename encoding to compression in the context of archive handling. Makes more sense.
2012-05-12 09:31:27 +02:00
Bastian Kleineidam
45a5f7e841
Support extraction of BZIP2 files with the Python bz2 module.
2012-05-11 22:08:00 +02:00
Bastian Kleineidam
26727ee20a
Also compare filenames.
2012-05-11 21:04:02 +02:00
Bastian Kleineidam
8d8da1fecf
Add tests for smae file check.
2012-05-11 20:16:24 +02:00
Bastian Kleineidam
96be0020ea
Add more checks.
2012-05-11 20:07:50 +02:00
Bastian Kleineidam
b51aff6182
Log infos to stdout instead of stderr.
2012-05-11 19:32:00 +02:00
Bastian Kleineidam
47c43a57b1
Updated copyright.
2012-04-08 18:54:37 +02:00
Bastian Kleineidam
abc807e956
Add crx mime-type; ignore non-supported extensions in file(1) mime type guessing; code cleanup
2011-10-19 09:12:01 +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