Support the lhasa program extracting LZH archives.

This commit is contained in:
Bastian Kleineidam 2012-05-24 10:55:17 +02:00
parent 7d5c27abdb
commit c0db69fe0c
4 changed files with 26 additions and 2 deletions

View File

@ -4,10 +4,10 @@
* Added support for shorten handling SHN (.shn) files.
* Added support for flac handling FLAC (.flac) files.
* Added support for the BSD cpio and tar programs.
* Generate standalone Windows installer.
* Added support for lhasa handling LZH (.lzh, .lha) files.
* Generate standalone Windows .exe and Linux .rpm installer.
* Initialize the internal MIME database correct on all platforms.
* Improved option compatibility for the ar, cpio and tar programs.
* Support RPM installer generation with cx_Freeze.
0.16 "Game of thrones" (released 12.5.2012)

View File

@ -128,6 +128,7 @@ ArchivePrograms = {
},
'lzh': {
None: ('lha',),
'extract': ('lhasa',),
},
'lzip': {
'extract': ('plzip', 'lzip', 'clzip', 'pdlzip'),

View File

@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2012 Bastian Kleineidam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Archive commands for the lhasa program."""
from .lha import extract_lzh

View File

@ -449,6 +449,11 @@ class TestArchives (ArchiveTest):
self.program = 'lha'
self.archive_commands('t.lha')
@needs_program('lhasa')
def test_lhasa (self):
self.program = 'lhasa'
self.archive_extract('t.lha')
@needs_program('arc')
def test_arc (self):
self.program = 'arc'