Fix handling of downloader output: they are now correctly logged using the internal log facility.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 08 18:43:26 2007 +0000 (2007-05-08)
changeset 791b5fe9bbe694
parent 78 c3868084d81a
child 80 d62d61c9de7b
Fix handling of downloader output: they are now correctly logged using the internal log facility.
scripts/functions
     1.1 --- a/scripts/functions	Tue May 08 17:48:32 2007 +0000
     1.2 +++ b/scripts/functions	Tue May 08 18:43:26 2007 +0000
     1.3 @@ -251,8 +251,8 @@
     1.4      local _curl=`which curl`
     1.5      case "${_wget},${_curl}" in
     1.6          ,)  CT_DoError "Could find neither wget nor curl";;
     1.7 -        ,*) CT_DoGetFileCurl "$1" |CT_DoLog DEBUG;;
     1.8 -        *)  CT_DoGetFileWget "$1" |CT_DoLog DEBUG;;
     1.9 +        ,*) CT_DoGetFileCurl "$1" 2>&1 |CT_DoLog DEBUG;;
    1.10 +        *)  CT_DoGetFileWget "$1" 2>&1 |CT_DoLog DEBUG;;
    1.11      esac
    1.12  }
    1.13  
    1.14 @@ -288,7 +288,7 @@
    1.15              for url in "$@"; do
    1.16                  case "${url}" in
    1.17                      *)  CT_DoLog DEBUG "Trying \"${url}/${file}${ext}\""
    1.18 -                        CT_DoGetFile "${url}/${file}${ext}" 2>&1
    1.19 +                        CT_DoGetFile "${url}/${file}${ext}"
    1.20                          ;;
    1.21                  esac
    1.22                  [ -f "${file}${ext}" ] && got_it=1 && break 2 || true