typo fix
authorGui Chen <gui.chen@intel.com>
Tue, 6 May 2014 07:06:43 +0000 (03:06 -0400)
committeradmin <yuhuan.yang@samsung.com>
Thu, 4 Feb 2016 09:44:31 +0000 (17:44 +0800)
Change-Id: I0bc9288562694f3a12bb6cf46ffa5c0cadebd236
Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/archive.py

index d506b9254721618308b201d35808883ecc68135d..4ee531be58b75547e64ba6b94e2199cf08615d32 100644 (file)
@@ -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)