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:
parent
028490ddcf
commit
2379eb1fa6
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user