diff options
Diffstat (limited to 'src/snakeoil')
-rw-r--r-- | src/snakeoil/compression/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/snakeoil/compression/__init__.py b/src/snakeoil/compression/__init__.py index 580a70a..77c0631 100644 --- a/src/snakeoil/compression/__init__.py +++ b/src/snakeoil/compression/__init__.py @@ -145,7 +145,7 @@ class _CompressedStdin: class _Tar(_Archive, ArComp): exts = frozenset(['.tar']) - binary = ('tar',) + binary = ('gtar', 'tar',) compress_binary = None default_unpack_cmd = '{binary} xf "{path}"' @@ -156,6 +156,7 @@ class _Tar(_Archive, ArComp): for b in self.compress_binary: try: process.find_binary(b[0]) + # FIXME: This is a gnuism, needs gnu tar. cmd += f' --use-compress-program="{" ".join(b)}"' break except process.CommandNotFound: |