From 9fc6dd26508f200b80d46428ea9ef2c096ebc4e0 Mon Sep 17 00:00:00 2001 From: arkpar Date: Thu, 16 Apr 2015 11:08:10 +0200 Subject: [PATCH] more reliable downloads --- extdep/getstuff.bat | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/extdep/getstuff.bat b/extdep/getstuff.bat index 370c80283..8fe3ba944 100644 --- a/extdep/getstuff.bat +++ b/extdep/getstuff.bat @@ -23,7 +23,12 @@ set eth_version=%2 cd download -if not exist %eth_name%-%eth_version%.tar.gz bitsadmin /transfer DownloadJob /download /priority normal %eth_server%/%eth_name%-%eth_version%.tar.gz %cd%\%eth_name%-%eth_version%.tar.gz +if not exist %eth_name%-%eth_version%.tar.gz ( + bitsadmin /cancel %eth_name%-%eth_version%.tar.gz + bitsadmin /create %eth_name%-%eth_version%.tar.gz + bitsadmin /transfer %eth_name%-%eth_version%.tar.gz /download /priority normal %eth_server%/%eth_name%-%eth_version%.tar.gz %cd%\%eth_name%-%eth_version%.tar.gz + bitsadmin /cancel %eth_name%-%eth_version%.tar.gz +) if not exist %eth_name%-%eth_version% tar -zxvf %eth_name%-%eth_version%.tar.gz cmake -E copy_directory %eth_name%-%eth_version% ..\install\windows