Yaroslav Halchenko
723006abd4
Merge pull request #93 from Swich1987/master
...
Added password support for all archivers
2021-02-18 09:32:54 -05:00
Vladimir Oprya
d9cd295d07
Adding helper _maybe_add_password where it's possible, to centralize the logic of work with password.
2021-02-18 10:05:30 +03:00
Benjamin Winger
b576de0ef9
Fixed patoolib.util:stripext handling of compressed tar files
2021-01-25 11:35:12 -05:00
Benjamin Winger
0ae7b3ae53
Fall back to guess_mime_mimedb if file command fails in guess_mime_file
2021-01-25 09:23:32 -05:00
Vladimir Oprya
237b025afc
Changed password support check from try...catch to check 'password' in inspect.signature(archive_cmdlist_func).parameters
2020-11-14 12:31:09 +03:00
Vladimir Oprya
1d3e8e2c89
Added password support for all archivers, which support work with password: arc, arj, p7zip, py_zipfile, rar, unace, unalz, unzip, xdms. Added tests for those, which support creation and test files in data folder for it.
2020-11-04 12:43:12 +03:00
Yaroslav Halchenko
30716c1ea0
Merge pull request #60 from yarikoptic/bf-misc-cped
...
tar treats Windows paths (D:\file.tar) as local files. Fixes #42
2018-09-12 08:56:27 -04:00
Yaroslav Halchenko
feaa387501
Merge pull request #64 from yarikoptic/bf-lzma
...
ENH: support pyliblzma bindings for Python2 which has no lzma built-in
2018-09-12 08:56:09 -04:00
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
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
c412699f66
BF: add --force-local ONLY to tar invocation
...
bsdtar apparently does not provide it, and I am not aware of the
other ones
2018-09-11 23:31:49 -04:00
S Anand
cd8d80c314
tar treats Windows paths (D:\file.tar) as local files. Fixes #42
...
Apparently tar has capabilities for the extraction from remote locations
but in my (@yarikoptic) experience I have never ran into someone using it
since it requires some rmt server to be running etc. So let's just favor
for files containing columns which are not generally forbidden.
2018-09-11 23:18:07 -04:00
Yaroslav Halchenko
3a5d6cbfa9
ENH: support pyliblzma bindings for Python2 which has no lzma built-in
2018-09-11 16:24:37 -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
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