Skip to content

Commit

Permalink
Fix jar options
Browse files Browse the repository at this point in the history
  • Loading branch information
wummel committed Nov 6, 2023
1 parent 7e45a20 commit bda9e3a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions patoolib/programs/jar.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@

def extract_zip(archive, compression, cmd, verbosity, interactive, outdir, password=None):
"""Extract a ZIP archive."""
cmdlist = [cmd, '--extract']
cmdlist = [cmd, '-x']
if verbosity > 1:
cmdlist.append('--verbose')
cmdlist.extend(["--file", os.path.abspath(archive)])
cmdlist.append('-v')
cmdlist.extend(["-f", os.path.abspath(archive)])
return (cmdlist, {'cwd': outdir})


def list_zip(archive, compression, cmd, verbosity, interactive, password=None):
"""List a ZIP archive."""
cmdlist = [cmd, '--list']
cmdlist = [cmd, '-t']
if verbosity > 1:
cmdlist.append('--verbose')
cmdlist.append(archive)
cmdlist.append('-v')
cmdlist.extend(["-f", archive])
return cmdlist

0 comments on commit bda9e3a

Please sign in to comment.