Commit Graph

181 Commits

Author SHA1 Message Date
a1346054 2199a6c1d0 fix spelling 2021-09-13 13:28:34 +00:00
Yaroslav Halchenko 723006abd4
Merge pull request #93 from Swich1987/master
Added password support for all archivers
2021-02-18 09:32:54 -05:00
Benjamin Winger b1b44849d7
Added test for stripext 2021-01-25 11:37:41 -05: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 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
Charles LeDoux cadeb1ca9f Fix require_one_program to actually require only one
Why:

* Currently uses an any which means *all* programs will be required.

This change addresses the need by:

* Switchs the *all* to an *any* so that at least one is required
2017-12-27 18:26:50 -06:00
Charles LeDoux 4d1b37a58d Call instead of raise pytest.raise()
Why:

* pytest.raise is not an exception.
2017-12-27 18:26:50 -06: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 5a654b7d04 Make tests non-interactive 2015-12-06 20:23:27 +01: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 3b5a9f79ad Support zpaq files. 2014-09-22 23:15:12 +02:00
Bastian Kleineidam 7067ad6536 Updated copyright 2014-06-27 21:36:13 +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 9f4f86928d Updated copyright. 2014-03-30 10:00:10 +02: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 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 686ab6677d Updated copyright. 2013-02-28 22:01:29 +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 bbb273c82e Remove unused archive tests. 2013-02-27 19:38:41 +01:00
Bastian Kleineidam b8425504c4 Add ISO image support. 2013-02-27 19:38:07 +01:00
Bastian Kleineidam cee88ecb60 Replace baker with argparse; some code restructuration. 2013-02-25 21:04:02 +01:00
Bastian Kleineidam 538e1d3007 Skip unadf test on Travis CI builds. 2013-02-23 09:35:25 +01:00
Bastian Kleineidam 0385ad63b5 Skip zoo archive tests on Travis. 2013-02-23 09:01:31 +01:00
Bastian Kleineidam 165411a54a Fix rzip archive handling. 2013-02-23 09:01:15 +01:00
Bastian Kleineidam 7006c51d53 Fix tests. 2013-02-23 07:37:35 +01:00
Bastian Kleineidam c854102908 Add search command. 2013-02-22 18:38:52 +01:00
Bastian Kleineidam 7d0d0f9601 Use new test mode functionality. 2013-02-22 18:38:28 +01:00
Bastian Kleineidam fe25ac8e03 Add Multifile test mode and fix some test function errors. 2013-02-22 18:37:58 +01:00
Bastian Kleineidam c5cf15a987 Cleanup test utility functions, add needs_module(). 2013-02-22 18:37:28 +01:00
Bastian Kleineidam 1a1a397dfe Fix invalid test files. 2013-02-22 18:37:01 +01:00
Bastian Kleineidam ba8d14c4b5 Fixed python lzma handling. 2013-02-22 18:36:45 +01:00
Bastian Kleineidam 88e72844b1 Fixed lrzip archive handling. 2013-02-22 18:34:28 +01:00
Bastian Kleineidam b982a5aba3 Remove .gitignore from deb package. 2013-02-22 18:31:33 +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 ee3b2497ea Disable failing test for now. 2012-12-14 22:11:11 +01:00
Bastian Kleineidam aa4a151934 Updated copyright. 2012-12-14 22:09:32 +01:00
Bastian Kleineidam 092245d440 Added support for libchm-bin. 2012-11-19 22:39:50 +01:00