mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-21 13:47:48 +00:00
Fix handling of downloader output: they are now correctly logged using the internal log facility.
This commit is contained in:
parent
8a2b17ab5e
commit
5b29e80130
@ -251,8 +251,8 @@ CT_DoGetFile() {
|
|||||||
local _curl=`which curl`
|
local _curl=`which curl`
|
||||||
case "${_wget},${_curl}" in
|
case "${_wget},${_curl}" in
|
||||||
,) CT_DoError "Could find neither wget nor curl";;
|
,) CT_DoError "Could find neither wget nor curl";;
|
||||||
,*) CT_DoGetFileCurl "$1" |CT_DoLog DEBUG;;
|
,*) CT_DoGetFileCurl "$1" 2>&1 |CT_DoLog DEBUG;;
|
||||||
*) CT_DoGetFileWget "$1" |CT_DoLog DEBUG;;
|
*) CT_DoGetFileWget "$1" 2>&1 |CT_DoLog DEBUG;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -288,7 +288,7 @@ CT_GetFile() {
|
|||||||
for url in "$@"; do
|
for url in "$@"; do
|
||||||
case "${url}" in
|
case "${url}" in
|
||||||
*) CT_DoLog DEBUG "Trying \"${url}/${file}${ext}\""
|
*) CT_DoLog DEBUG "Trying \"${url}/${file}${ext}\""
|
||||||
CT_DoGetFile "${url}/${file}${ext}" 2>&1
|
CT_DoGetFile "${url}/${file}${ext}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
[ -f "${file}${ext}" ] && got_it=1 && break 2 || true
|
[ -f "${file}${ext}" ] && got_it=1 && break 2 || true
|
||||||
|
Loading…
Reference in New Issue
Block a user