From 97e743687376e25e0f210b3c99fc5c6b613c4455 Mon Sep 17 00:00:00 2001 From: KevinMatt <36391318+kevinmatthe@users.noreply.github.com> Date: Sat, 23 Dec 2023 04:54:32 +0800 Subject: [PATCH 1/2] Update unar.py Fix unar params append issue --- patoolib/programs/unar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patoolib/programs/unar.py b/patoolib/programs/unar.py index 4237103d..4449d897 100644 --- a/patoolib/programs/unar.py +++ b/patoolib/programs/unar.py @@ -18,7 +18,7 @@ def _extract(archive, compression, cmd, verbosity, interactive, outdir, password """Extract an archive.""" cmdlist = [cmd, '-o', outdir] if password: - cmdlist.append('-p', password) + cmdlist.extend('-p', password) cmdlist.append(archive) return cmdlist From f7f56646469cf55450cfc047af844e866a35cf51 Mon Sep 17 00:00:00 2001 From: KevinMatt <36391318+kevinmatthe@users.noreply.github.com> Date: Sat, 23 Dec 2023 04:58:09 +0800 Subject: [PATCH 2/2] Update unar.py --- patoolib/programs/unar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patoolib/programs/unar.py b/patoolib/programs/unar.py index 4449d897..642da817 100644 --- a/patoolib/programs/unar.py +++ b/patoolib/programs/unar.py @@ -18,7 +18,7 @@ def _extract(archive, compression, cmd, verbosity, interactive, outdir, password """Extract an archive.""" cmdlist = [cmd, '-o', outdir] if password: - cmdlist.extend('-p', password) + cmdlist.extend(['-p', password]) cmdlist.append(archive) return cmdlist