From 1c0c3d9b61080984779d85a8225c1efd04d0446a Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 23 May 2012 05:00:13 +0200 Subject: [PATCH] xz and lzma are not native for tar programs. --- patoolib/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/patoolib/__init__.py b/patoolib/__init__.py index b032b40..1addcd5 100644 --- a/patoolib/__init__.py +++ b/patoolib/__init__.py @@ -283,10 +283,8 @@ def program_supports_compression (program, compression): @return: True iff the program supports the given compression format natively, else False. """ - if program == 'py_tarfile': + if program in ('tar', 'star', 'py_tarfile'): return compression in ('gzip', 'bzip2') - if program in ('tar', 'star'): - return compression in ('gzip', 'bzip2', 'xz', 'lzma') return False