summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjianzhong.fang <jz.fang@samsung.com>2016-03-28 18:58:45 +0800
committerjianzhong.fang <jz.fang@samsung.com>2016-03-28 18:58:45 +0800
commit2c66d22f71015a1a2ed94b4763dc4279ac6bae6b (patch)
tree98db6890758a396ef1af4b28005d98ac7ee48a5f
parent7656d8beb8efa9d4b867522d4d6387833f8f92fd (diff)
downloadmic-2c66d22f71015a1a2ed94b4763dc4279ac6bae6b.tar.gz
mic-2c66d22f71015a1a2ed94b4763dc4279ac6bae6b.tar.bz2
mic-2c66d22f71015a1a2ed94b4763dc4279ac6bae6b.zip
fix broken tar archive
Change-Id: I971b256f3e47212dd54b2f5b9232a8ade212a405
-rw-r--r--mic/archive.py4
1 files 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])