From 4fcb6396580698a56c4e44cfbef3b76157649940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Thu, 21 Nov 2013 15:39:04 +0200 Subject: [PATCH] Fix vs-tool installation to properly unzip over a previous version. --- emsdk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emsdk b/emsdk index 56792eb..faaf749 100644 --- a/emsdk +++ b/emsdk @@ -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: