fix broken tar archive
authorjianzhong.fang <jz.fang@samsung.com>
Mon, 28 Mar 2016 10:58:45 +0000 (18:58 +0800)
committerSoonKyu Park <sk7.park@samsung.com>
Sat, 11 Jun 2016 11:39:11 +0000 (20:39 +0900)
Change-Id: I971b256f3e47212dd54b2f5b9232a8ade212a405

mic/archive.py

index a612389d02e9d3c394c742296ebac61d0ac56ec5..72f506f2931c45035b77d0ef102499b35fd62652 100644 (file)
@@ -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])