Merge pull request #106 from SaschaNaz/tarxf

Less verbose unpacking
This commit is contained in:
juj
2017-10-24 14:39:13 +03:00
committed by GitHub

2
emsdk
View File

@@ -338,7 +338,7 @@ def untargz(source_filename, dest_dir, unpack_even_if_exists=False):
return True
print("Unpacking '" + source_filename + "' to '" + dest_dir + "'")
mkdir_p(dest_dir)
run(['tar', '-xvf', sdk_path(source_filename), '--strip', '1'], cwd=dest_dir)
run(['tar', '-xvf' if VERBOSE else '-xf', sdk_path(source_filename), '--strip', '1'], cwd=dest_dir)
#tfile = tarfile.open(source_filename, 'r:gz')
#tfile.extractall(dest_dir)
return True