From a37ab688a1966b75acf633bdf64e8e84b579afa1 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Fri, 26 Jul 2013 22:31:53 +0200 Subject: [PATCH] Add missing GZIP creation to 7z modules. --- doc/changelog.txt | 6 ++++++ patoolib/programs/p7azip.py | 3 ++- patoolib/programs/p7zip.py | 1 + tests/archives/test_7z.py | 1 + tests/archives/test_7za.py | 1 + 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index 2f1f6e6..381d549 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -1,3 +1,9 @@ +1.4 (released xx.xx.2013) + +* Add missing GZIP creation support for 7z modules. + Closes: GH bug #6 + + 1.3 (released 19.7.2013) * Add patoolib.__version__ (see PEP 396). diff --git a/patoolib/programs/p7azip.py b/patoolib/programs/p7azip.py index 081ed9a..f9f51a1 100644 --- a/patoolib/programs/p7azip.py +++ b/patoolib/programs/p7azip.py @@ -44,4 +44,5 @@ from .p7zip import \ test_cab, \ test_7z, \ create_7z, \ - create_zip + create_zip, \ + create_gzip diff --git a/patoolib/programs/p7zip.py b/patoolib/programs/p7zip.py index 698033b..92ed4a8 100644 --- a/patoolib/programs/p7zip.py +++ b/patoolib/programs/p7zip.py @@ -90,4 +90,5 @@ def create_7z (archive, compression, cmd, verbosity, filenames): create_zip = \ create_xz = \ + create_gzip = \ create_7z diff --git a/tests/archives/test_7z.py b/tests/archives/test_7z.py index 1040fef..04916d3 100644 --- a/tests/archives/test_7z.py +++ b/tests/archives/test_7z.py @@ -58,6 +58,7 @@ class Test7z (ArchiveTest): self.archive_test('t.rpm') self.archive_test('t.deb') self.archive_test('t.iso') + self.archive_create('t.txt.gz', check=Content.Singlefile) @needs_codec(program, 'rar') def test_7z_rar (self): diff --git a/tests/archives/test_7za.py b/tests/archives/test_7za.py index 54972e6..c23f998 100644 --- a/tests/archives/test_7za.py +++ b/tests/archives/test_7za.py @@ -40,6 +40,7 @@ class Test7za (ArchiveTest): self.archive_test('t.jar') self.archive_test('t.txt.Z') self.archive_test('t.cab') + self.archive_create('t.txt.gz', check=Content.Singlefile) @needs_program('file') @needs_program(program)