Commit Graph

8 Commits

Author SHA1 Message Date
a1346054 2199a6c1d0 fix spelling 2021-09-13 13:28:34 +00: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
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 d8688491d9 Updated copyright 2015-07-19 19:29:01 +02:00
Bastian Kleineidam 9f4f86928d Updated copyright. 2014-03-30 10:00:10 +02:00
Bastian Kleineidam cee88ecb60 Replace baker with argparse; some code restructuration. 2013-02-25 21:04:02 +01:00
Bastian Kleineidam f409b5bba6 Split archive tests 2012-11-14 20:24:34 +01:00