Commit Graph

137 Commits

Author SHA1 Message Date
a1346054 2199a6c1d0 fix spelling 2021-09-13 13:28:34 +00: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 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 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 049ed12d43 Updated copyright 2016-01-09 21:09:27 +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 a546db107a Add new option --non-interactive. 2015-12-06 20:09:16 +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 47929ecac8 Add LZMA functions for xz, fixing build errors. 2014-06-27 17:59:58 +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 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 7e9c672702 Accept application/gzip as MIME type for newer libmagic versions. 2013-06-27 22:16:55 +02:00
Bastian Kleineidam e9f1a5e515 Add support for zopfli. 2013-03-28 19:42:50 +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 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
Bastian Kleineidam 1d1b5ed0db Documentation updates. 2013-02-21 17:52:51 +01:00
Bastian Kleineidam 78cbd6b1b1 Make sure archive arguments are checked. 2013-02-21 17:52:36 +01:00
Bastian Kleineidam 69ce2740ca Optimize repack command. 2013-02-21 17:51:34 +01:00
Bastian Kleineidam 39c23ddf37 Support lzma module in Python 3.3 2013-02-20 21:16:32 +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 092245d440 Added support for libchm-bin. 2012-11-19 22:39:50 +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 b341a83cde Add zip test command. 2012-11-18 20:43:04 +01:00
Bastian Kleineidam 366141d6ea Make note about lzma module. 2012-10-24 23:52:50 +02:00
Bastian Kleineidam 9ae920ff1b Use "." instead of os.getcwd() for current directory. This prevents errors from os.getcwd() (for example on stale NFS mounts) 2012-10-12 15:39:01 +02:00
Bastian Kleineidam 7a4bd2475c Remove orange support. 2012-08-04 14:09:08 +02:00
Bastian Kleineidam 68b8a524e2 Rename output dir to archive name without extension. 2012-08-03 23:11:11 +02: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 216faeaf0e Add lcab support. 2012-05-24 23:17:37 +02:00
Bastian Kleineidam 1b2f0f8a09 Fix program config for 7z. 2012-05-24 23:10:05 +02:00
Bastian Kleineidam c0db69fe0c Support the lhasa program extracting LZH archives. 2012-05-24 10:55:17 +02:00
Bastian Kleineidam f7db4b5116 Support bsdtar. 2012-05-23 18:35:54 +02:00
Bastian Kleineidam df8f0841f3 Support bsdtar. 2012-05-23 18:22:16 +02:00
Bastian Kleineidam 1c0c3d9b61 xz and lzma are not native for tar programs. 2012-05-23 05:00:13 +02:00