diff --git a/patoolib/programs/tar.py b/patoolib/programs/tar.py index d8d1d36..5a275c2 100644 --- a/patoolib/programs/tar.py +++ b/patoolib/programs/tar.py @@ -19,14 +19,14 @@ import os def extract_tar (archive, compression, cmd, verbosity, interactive, outdir): """Extract a TAR archive.""" - cmdlist = [cmd, '--extract'] + cmdlist = [cmd, '--force-local', '--extract'] add_tar_opts(cmdlist, compression, verbosity) cmdlist.extend(["--file", archive, '--directory', outdir]) return cmdlist def list_tar (archive, compression, cmd, verbosity, interactive): """List a TAR archive.""" - cmdlist = [cmd, '--list'] + cmdlist = [cmd, '--force-local', '--list'] add_tar_opts(cmdlist, compression, verbosity) cmdlist.extend(["--file", archive]) return cmdlist @@ -35,7 +35,7 @@ test_tar = list_tar def create_tar (archive, compression, cmd, verbosity, interactive, filenames): """Create a TAR archive.""" - cmdlist = [cmd, '--create'] + cmdlist = [cmd, '--force-local', '--create'] add_tar_opts(cmdlist, compression, verbosity) cmdlist.extend(["--file", archive, '--']) cmdlist.extend(filenames)