Fix vs-tool installation to properly unzip over a previous version.
This commit is contained in:
3
emsdk
3
emsdk
@@ -562,7 +562,8 @@ class Tool:
|
|||||||
if hasattr(self, 'git_branch'):
|
if hasattr(self, 'git_branch'):
|
||||||
success = git_clone_checkout_and_pull(url, self.installation_path(), self.git_branch)
|
success = git_clone_checkout_and_pull(url, self.installation_path(), self.git_branch)
|
||||||
elif url.endswith('zip') or url.endswith('.tar') or url.endswith('.gz'):
|
elif url.endswith('zip') or url.endswith('.tar') or url.endswith('.gz'):
|
||||||
success = download_and_unzip(url, self.installation_path())
|
download_even_if_exists = (self.id == 'vs-tool')
|
||||||
|
success = download_and_unzip(url, self.installation_path(), download_even_if_exists)
|
||||||
else:
|
else:
|
||||||
dst_file = download_file(urlparse.urljoin(emsdk_packages_url, self.download_url()), self.installation_path())
|
dst_file = download_file(urlparse.urljoin(emsdk_packages_url, self.download_url()), self.installation_path())
|
||||||
if dst_file:
|
if dst_file:
|
||||||
|
|||||||
Reference in New Issue
Block a user