summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGui Chen <gui.chen@intel.com>2014-05-06 03:06:43 -0400
committeradmin <yuhuan.yang@samsung.com>2016-02-04 17:44:31 +0800
commitb53a557d7d1633b773955b708f26e29f39a92a96 (patch)
treed92988815dd7e1bb85cf16f6e7d7366b8eb34bf3
parent4ce5a8f124e164bfa56a41bb3ba4e3d36aaf7d91 (diff)
downloadmic-b53a557d7d1633b773955b708f26e29f39a92a96.tar.gz
mic-b53a557d7d1633b773955b708f26e29f39a92a96.tar.bz2
mic-b53a557d7d1633b773955b708f26e29f39a92a96.zip
typo fix
Change-Id: I0bc9288562694f3a12bb6cf46ffa5c0cadebd236 Signed-off-by: Gui Chen <gui.chen@intel.com>
-rw-r--r--mic/archive.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mic/archive.py b/mic/archive.py
index d506b92..4ee531b 100644
--- a/mic/archive.py
+++ b/mic/archive.py
@@ -423,8 +423,8 @@ def extract_archive(archive_name, target_name):
@target_name: the directory name where the target locates
@retval: the extracting result
"""
- if not os.path.exists(target_dir):
- os.makedirs(target_dir)
+ if not os.path.exists(target_name):
+ os.makedirs(target_name)
return _extract_tarball(archive_name, target_name)