From 984102b8ae1a446d8d02efc24a68c809cb0a97a1 Mon Sep 17 00:00:00 2001 From: Vitaly Lipatov Date: Tue, 21 Jul 2015 02:37:02 +0300 Subject: [PATCH] fix zpaq commands according to the newest zpaq version --- patoolib/programs/zpaq.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/patoolib/programs/zpaq.py b/patoolib/programs/zpaq.py index 60e30f1..ebb7250 100644 --- a/patoolib/programs/zpaq.py +++ b/patoolib/programs/zpaq.py @@ -29,11 +29,12 @@ def list_zpaq(archive, compression, cmd, verbosity): def create_zpaq(archive, compression, cmd, verbosity, filenames): """Create a ZPAQ archive.""" - cmdlist = [cmd, 'c', archive] + cmdlist = [cmd, 'a', archive] cmdlist.extend(filenames) + cmdlist.extend(['-method', '4']) return cmdlist def test_zpaq(archive, compression, cmd, verbosity): """Test a ZPAQ archive.""" - return [cmd, 'l', archive] + return [cmd, 'x', archive, '-test']