1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

makepkg: redirect downloader output to STDERR

This allows scripts to safely capture the output of "makepkg -g".

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Xyne 2013-09-18 03:01:23 +00:00 committed by Allan McRae
parent 028490ddcf
commit 2379eb1fa6

View File

@ -372,7 +372,7 @@ download_file() {
fi fi
local ret=0 local ret=0
eval "$dlcmd || ret=\$?" eval "$dlcmd >&2 || ret=\$?"
if (( ret )); then if (( ret )); then
[[ ! -s $dlfile ]] && rm -f -- "$dlfile" [[ ! -s $dlfile ]] && rm -f -- "$dlfile"
error "$(gettext "Failure while downloading %s")" "$filename" error "$(gettext "Failure while downloading %s")" "$filename"