Roll back downloadFile upgrade
This commit is contained in:
parent
c89ca099a2
commit
f2836e5a5c
1 changed files with 1 additions and 2 deletions
|
|
@ -169,7 +169,6 @@ proc fetchList*(list: PackageList, options: Options) =
|
|||
lastError = ""
|
||||
copyFromPath = ""
|
||||
if list.urls.len > 0:
|
||||
let httpclient = newHttpClient(proxy = getProxy(options))
|
||||
for i in 0 .. <list.urls.len:
|
||||
let url = list.urls[i]
|
||||
display("Trying", url)
|
||||
|
|
@ -184,7 +183,7 @@ proc fetchList*(list: PackageList, options: Options) =
|
|||
priority = LowPriority)
|
||||
|
||||
try:
|
||||
httpclient.downloadFile(url, tempPath)
|
||||
downloadFile(url, tempPath, proxy = proxy)
|
||||
except:
|
||||
let message = "Could not download: " & getCurrentExceptionMsg()
|
||||
display("Warning:", message, Warning)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue