patool/patoolib
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
..
programs Fix 7z unpacking when only p7zip with /usr/bin/7zr is installed. 2016-01-09 20:25:26 +01:00
__init__.py Only return separate encoding if `program_supports_compression` 2018-09-11 23:50:36 -04:00
configuration.py Fix support URL 2015-12-05 12:12:57 +01:00
util.py Only return separate encoding if `program_supports_compression` 2018-09-11 23:50:36 -04:00