From 2c66d22f71015a1a2ed94b4763dc4279ac6bae6b Mon Sep 17 00:00:00 2001 From: "jianzhong.fang" Date: Mon, 28 Mar 2016 18:58:45 +0800 Subject: fix broken tar archive Change-Id: I971b256f3e47212dd54b2f5b9232a8ade212a405 --- mic/archive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mic/archive.py b/mic/archive.py index a612389..72f506f 100644 --- a/mic/archive.py +++ b/mic/archive.py @@ -258,7 +258,7 @@ def _do_tar(archive_name, target_name): target_dir = os.path.dirname(target_name) target_name = os.path.basename(target_name) file_list.append(target_name) - cmdln = ["tar", "-S", "-C", target_dir, "-cf", archive_name] + cmdln = ["tar", "-C", target_dir, "-cf", archive_name] cmdln.extend(file_list) _call_external(cmdln) @@ -273,7 +273,7 @@ def _do_untar(archive_name, target_dir=None): """ if not target_dir: target_dir = os.getcwd() - cmdln = ["tar", "-S", "-C", target_dir, "-xf", archive_name] + cmdln = ["tar", "-C", target_dir, "-xf", archive_name] (returncode, stdout, stderr) = _call_external(cmdln) if returncode != 0: raise OSError, os.linesep.join([stdout, stderr]) -- cgit v1.2.3