From e44b17a47a215f7cc51ab4038869c30b2ffba04c Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Mon, 7 Dec 2015 11:08:19 +0100 Subject: [PATCH] Fix ZPAQ archive testing --- doc/changelog.txt | 1 + patoolib/programs/zpaq.py | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index 3ae6cd7..e206ccb 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -2,6 +2,7 @@ * Fix ZPAQ archive creation. Patch by vitlav +* Fix ZPAQ archive testing. * Add more search paths for rar libraries. Patch by vitlav Closes: GH bug #30 diff --git a/patoolib/programs/zpaq.py b/patoolib/programs/zpaq.py index 4634f46..795cf5b 100644 --- a/patoolib/programs/zpaq.py +++ b/patoolib/programs/zpaq.py @@ -34,7 +34,6 @@ def create_zpaq(archive, compression, cmd, verbosity, interactive, filenames): cmdlist.extend(['-method', '4']) return cmdlist +# zpaq has no separate test mode, so use listing instead +test_zpaq = list_zpaq -def test_zpaq(archive, compression, cmd, verbosity, interactive): - """Test a ZPAQ archive.""" - return [cmd, 'x', archive, '-test']