Added support for LZH (.lha, .lzh) archives.

This commit is contained in:
Bastian Kleineidam 2010-03-06 19:24:14 +01:00
parent 1e733a2158
commit f6720231dd
5 changed files with 11 additions and 0 deletions

BIN
tests/data/t.lha Normal file

Binary file not shown.

BIN
tests/data/t.lha.foo Normal file

Binary file not shown.

BIN
tests/data/t.lzh Normal file

Binary file not shown.

View File

@ -278,3 +278,8 @@ class TestArchives (ArchiveTest):
self.archive_test('t.xz') self.archive_test('t.xz')
self.archive_extract('t.xz') self.archive_extract('t.xz')
self.archive_create('t.xz', singlefile=True) self.archive_create('t.xz', singlefile=True)
@needs_program('lha')
def test_lha (self):
self.program = 'lha'
self.archive_commands('t.lha')

View File

@ -320,3 +320,9 @@ class TestArchives (ArchiveTest):
self.archive_test('t.xz.foo') self.archive_test('t.xz.foo')
self.archive_extract('t.xz.foo') self.archive_extract('t.xz.foo')
self.archive_create('t.xz.foo', format="xz", singlefile=True) self.archive_create('t.xz.foo', format="xz", singlefile=True)
@needs_program('file')
@needs_program('lha')
def test_lha (self):
self.program = 'lha'
self.archive_commands('t.lha.foo', format="lzh")