download_strategy: fix typo
This commit is contained in:
parent
af3bfab9db
commit
f9670f5dda
@ -159,7 +159,7 @@ class CurlApacheMirrorDownloadStrategy < CurlDownloadStrategy
|
|||||||
mirrors = MultiJson.decode(open("#{@url}&asjson=1").read)
|
mirrors = MultiJson.decode(open("#{@url}&asjson=1").read)
|
||||||
url = mirrors.fetch('preferred') + mirrors.fetch('path_info')
|
url = mirrors.fetch('preferred') + mirrors.fetch('path_info')
|
||||||
|
|
||||||
ohai "Best Mirror #{mirror_url}"
|
ohai "Best Mirror #{url}"
|
||||||
curl url, '-C', downloaded_size, '-o', @temporary_path
|
curl url, '-C', downloaded_size, '-o', @temporary_path
|
||||||
rescue IndexError
|
rescue IndexError
|
||||||
raise "Couldn't determine mirror. Try again later."
|
raise "Couldn't determine mirror. Try again later."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user