Support ZIP (.zip) file creation with 7z.

This commit is contained in:
Bastian Kleineidam 2011-01-17 13:38:53 -06:00
parent 296283bf9e
commit d39e1c6750
5 changed files with 9 additions and 3 deletions

View File

@ -4,6 +4,8 @@
* Added correct cpio MIME type on Debian systems.
* Added support for the clzip and pdlzip programs who are both capable
of handling LZIP (.lz) archives.
* Support ZIP (.zip) file create with the 7z and 7za programs. Also
fixes the test_repack test case when /usr/bin/zip was not installed.
0.12 "Galaxy Quest" (released 20.11.2010)

View File

@ -110,7 +110,7 @@ ArchivePrograms = {
'extract': ('unzip', '7z', '7za'),
'list': ('unzip', '7z', '7za'),
'test': ('unzip', '7z', '7za'),
'create': ('zip',),
'create': ('zip', '7z', '7za'),
},
'gzip': {
None: ('gzip', '7z', '7za'),

View File

@ -43,4 +43,5 @@ from .p7zip import \
test_rar, \
test_cab, \
test_7z, \
create_7z
create_7z, \
create_zip

View File

@ -88,3 +88,6 @@ def create_7z (archive, encoding, cmd, *args, **kwargs):
cmdlist.append(archive)
cmdlist.extend(args)
return cmdlist
create_zip = \
create_7z

View File

@ -23,7 +23,7 @@ class ArchiveRepackTest (unittest.TestCase):
@needs_program('diff')
@needs_one_program(('tar', 'star', '7z'))
@needs_one_program(('unzip', '7z'))
@needs_one_program(('zip', '7z'))
def test_repack (self):
archive1 = os.path.join(datadir, "t.tar")
tmpdir = patoolib.util.tmpdir()