# HG changeset patch # User "Yann E. MORIN" # Date 1178649806 0 # Node ID 1b5fe9bbe6944b6e5d459aac0e6e0e459ffc9c37 # Parent c3868084d81ab430892d89a608c1053c0423413e Fix handling of downloader output: they are now correctly logged using the internal log facility. diff -r c3868084d81a -r 1b5fe9bbe694 scripts/functions --- a/scripts/functions Tue May 08 17:48:32 2007 +0000 +++ b/scripts/functions Tue May 08 18:43:26 2007 +0000 @@ -251,8 +251,8 @@ local _curl=`which curl` case "${_wget},${_curl}" in ,) CT_DoError "Could find neither wget nor curl";; - ,*) CT_DoGetFileCurl "$1" |CT_DoLog DEBUG;; - *) CT_DoGetFileWget "$1" |CT_DoLog DEBUG;; + ,*) CT_DoGetFileCurl "$1" 2>&1 |CT_DoLog DEBUG;; + *) CT_DoGetFileWget "$1" 2>&1 |CT_DoLog DEBUG;; esac } @@ -288,7 +288,7 @@ for url in "$@"; do case "${url}" in *) CT_DoLog DEBUG "Trying \"${url}/${file}${ext}\"" - CT_DoGetFile "${url}/${file}${ext}" 2>&1 + CT_DoGetFile "${url}/${file}${ext}" ;; esac [ -f "${file}${ext}" ] && got_it=1 && break 2 || true