Added support for lzma or xz encoded tar files (ie. t.tar.lzma and t.tar.xz)
This commit is contained in:
parent
8742abafe9
commit
3c01a64a16
|
@ -48,5 +48,8 @@ def add_star_opts (cmdlist, encoding, verbose):
|
||||||
cmdlist.append('-Z')
|
cmdlist.append('-Z')
|
||||||
elif encoding == 'bzip2':
|
elif encoding == 'bzip2':
|
||||||
cmdlist.append('-bz')
|
cmdlist.append('-bz')
|
||||||
|
elif encoding in ('lzma', 'xz'):
|
||||||
|
# use compress-program option
|
||||||
|
cmdlist.append('compress-program=%s' % encoding)
|
||||||
if verbose:
|
if verbose:
|
||||||
cmdlist.append('-v')
|
cmdlist.append('-v')
|
||||||
|
|
|
@ -31,8 +31,8 @@ class TestArchives (ArchiveTest):
|
||||||
self.archive_commands('t.tar.Z', cmd)
|
self.archive_commands('t.tar.Z', cmd)
|
||||||
self.archive_commands('t.tar.bz2', cmd)
|
self.archive_commands('t.tar.bz2', cmd)
|
||||||
self.archive_commands('t.tbz2', cmd)
|
self.archive_commands('t.tbz2', cmd)
|
||||||
# XXXself.archive_commands('t.tar.lzma', cmd)
|
self.archive_commands('t.tar.lzma', cmd)
|
||||||
# XXXself.archive_command('t.tar.xz', cmd)
|
self.archive_commands('t.tar.xz', cmd)
|
||||||
|
|
||||||
@needs_cmd('bzip2')
|
@needs_cmd('bzip2')
|
||||||
def test_bzip2 (self):
|
def test_bzip2 (self):
|
||||||
|
|
Loading…
Reference in New Issue