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 = ""
|
lastError = ""
|
||||||
copyFromPath = ""
|
copyFromPath = ""
|
||||||
if list.urls.len > 0:
|
if list.urls.len > 0:
|
||||||
let httpclient = newHttpClient(proxy = getProxy(options))
|
|
||||||
for i in 0 .. <list.urls.len:
|
for i in 0 .. <list.urls.len:
|
||||||
let url = list.urls[i]
|
let url = list.urls[i]
|
||||||
display("Trying", url)
|
display("Trying", url)
|
||||||
|
|
@ -184,7 +183,7 @@ proc fetchList*(list: PackageList, options: Options) =
|
||||||
priority = LowPriority)
|
priority = LowPriority)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
httpclient.downloadFile(url, tempPath)
|
downloadFile(url, tempPath, proxy = proxy)
|
||||||
except:
|
except:
|
||||||
let message = "Could not download: " & getCurrentExceptionMsg()
|
let message = "Could not download: " & getCurrentExceptionMsg()
|
||||||
display("Warning:", message, Warning)
|
display("Warning:", message, Warning)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue