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
d9f1372243
Print search path for archive formats.
2016-01-14 21:09:44 +01: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
1d121c4c79
Fix 7z unpacking when only p7zip with /usr/bin/7zr is installed.
2016-01-09 20:25:26 +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
e44b17a47a
Fix ZPAQ archive testing
2015-12-07 11:08:19 +01:00
Bastian Kleineidam
94aaaf58bd
Fix py_lzma test
2015-12-06 20:46:10 +01:00
Bastian Kleineidam
a546db107a
Add new option --non-interactive.
2015-12-06 20:09:16 +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
Bastian Kleineidam
4a2c3d55ce
Fix support URL
2015-12-05 12:12:57 +01:00
Vitaly Lipatov
d01d6c738f
improve paths to lib dirs for RAR plugins search
2015-11-21 14:14:11 +03:00
Vitaly Lipatov
984102b8ae
fix zpaq commands according to the newest zpaq version
2015-07-21 02:37:02 +03:00
Bastian Kleineidam
d8688491d9
Updated copyright
2015-07-19 19:29:01 +02:00
Bastian Kleineidam
bd111dc7e2
Add new recompress command
2015-07-19 17:29:33 +02:00
Bastian Kleineidam
93f0caeecc
Use maximum compression options.
2015-07-19 15:43:21 +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
47929ecac8
Add LZMA functions for xz, fixing build errors.
2014-06-27 17:59:58 +02:00
Bastian Kleineidam
e6018f0cff
Fix lzma decompression.
2014-06-26 21:19:08 +02:00
Bastian Kleineidam
bfe9ab7625
Fix config file name.
2014-06-24 08:34:06 +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
8cd69aa816
Updated copyright.
2014-03-30 10:00:44 +02:00
Bastian Kleineidam
9f4f86928d
Updated copyright.
2014-03-30 10:00:10 +02:00
Bastian Kleineidam
29844ff111
Detect broken symlinks when unpacking.
2014-03-20 22:53:11 +01:00
Bastian Kleineidam
a37ab688a1
Add missing GZIP creation to 7z modules.
2013-07-26 22:31:53 +02:00
Bastian Kleineidam
d2b12f985e
Improve MIME detection of LZMA and LRZIP.
2013-07-16 20:14:19 +02:00
Bastian Kleineidam
8b2b63995e
Added patoolib.__version__
2013-07-05 06:58:25 +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
d39b9f4ac9
Fix Python 3.2
2013-04-08 20:20:26 +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
f25df56733
Fix repacking with 7z
2013-04-05 18:46:30 +02:00
Bastian Kleineidam
e9f1a5e515
Add support for zopfli.
2013-03-28 19:42:50 +01:00
Bastian Kleineidam
a1a51708b5
Add .iso mime type.
2013-02-27 21:18:56 +01:00
Bastian Kleineidam
2a68f868c9
7z supports lzma
2013-02-27 20:20:02 +01:00
Bastian Kleineidam
37c9690d2a
7z supports xz.
2013-02-27 20:05:54 +01:00
Bastian Kleineidam
b8425504c4
Add ISO image support.
2013-02-27 19:38:07 +01:00
Bastian Kleineidam
3ea731db9b
More restructuring - get rid of generic function sigs.
2013-02-26 20:41:42 +01:00
Bastian Kleineidam
cee88ecb60
Replace baker with argparse; some code restructuration.
2013-02-25 21:04:02 +01:00
Bastian Kleineidam
34e6a62c6a
Make sure files are read in binary mode.
2013-02-23 13:48:47 +01:00
Bastian Kleineidam
70fb808dae
Decode command output. Fixes Python3 test cases.
2013-02-23 13:36:46 +01:00
Bastian Kleineidam
165411a54a
Fix rzip archive handling.
2013-02-23 09:01:15 +01:00
Bastian Kleineidam
c854102908
Add search command.
2013-02-22 18:38:52 +01:00
Bastian Kleineidam
ba8d14c4b5
Fixed python lzma handling.
2013-02-22 18:36:45 +01:00