xz and lzma are not native for tar programs.

This commit is contained in:
Bastian Kleineidam 2012-05-23 05:00:13 +02:00
parent 087b7e100e
commit 1c0c3d9b61
1 changed files with 1 additions and 3 deletions

View File

@ -283,10 +283,8 @@ def program_supports_compression (program, compression):
@return: True iff the program supports the given compression format @return: True iff the program supports the given compression format
natively, else False. natively, else False.
""" """
if program == 'py_tarfile': if program in ('tar', 'star', 'py_tarfile'):
return compression in ('gzip', 'bzip2') return compression in ('gzip', 'bzip2')
if program in ('tar', 'star'):
return compression in ('gzip', 'bzip2', 'xz', 'lzma')
return False return False