Support ZIP (.zip) file creation with 7z.
This commit is contained in:
parent
296283bf9e
commit
d39e1c6750
|
@ -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)
|
||||
|
||||
|
|
|
@ -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'),
|
||||
|
|
|
@ -43,4 +43,5 @@ from .p7zip import \
|
|||
test_rar, \
|
||||
test_cab, \
|
||||
test_7z, \
|
||||
create_7z
|
||||
create_7z, \
|
||||
create_zip
|
||||
|
|
|
@ -88,3 +88,6 @@ def create_7z (archive, encoding, cmd, *args, **kwargs):
|
|||
cmdlist.append(archive)
|
||||
cmdlist.extend(args)
|
||||
return cmdlist
|
||||
|
||||
create_zip = \
|
||||
create_7z
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue