Fix vs-tool installation to properly unzip over a previous version.

This commit is contained in:
Jukka Jylänki
2013-11-21 15:39:04 +02:00
parent c81cd70eb6
commit 4fcb639658

3
emsdk
View File

@@ -562,7 +562,8 @@ class Tool:
if hasattr(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'):
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:
dst_file = download_file(urlparse.urljoin(emsdk_packages_url, self.download_url()), self.installation_path())
if dst_file: