Fix unzip() handling of --strip 1 implementation.
This commit is contained in:
5
emsdk
5
emsdk
@@ -328,7 +328,10 @@ def unzip(source_filename, dest_dir, unpack_even_if_exists=False):
|
|||||||
if common_subdir == None:
|
if common_subdir == None:
|
||||||
common_subdir = words[0]
|
common_subdir = words[0]
|
||||||
elif common_subdir != words[0]:
|
elif common_subdir != words[0]:
|
||||||
common_subdir = ''
|
common_subdir = None
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
common_subdir = None
|
||||||
break
|
break
|
||||||
|
|
||||||
unzip_to_dir = dest_dir
|
unzip_to_dir = dest_dir
|
||||||
|
|||||||
Reference in New Issue
Block a user