Commit Graph

37 Commits

Author SHA1 Message Date
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 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 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 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 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 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 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 e92fdd3d58 Fix tests. 2012-11-18 20:42:54 +01:00
Bastian Kleineidam f409b5bba6 Split archive tests 2012-11-14 20:24:34 +01:00