summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXyne <xyne@archlinux.ca>2013-09-18 03:01:23 +0000
committerAllan McRae <allan@archlinux.org>2013-09-18 14:28:03 +1000
commit2379eb1fa629eebd9de8c1a542734243ff2ef471 (patch)
tree854f74258c785d54bcaa9ec678e4d5a7ceb52574
parent028490ddcf2dcf4130da6d50ce1adbc8dba17c03 (diff)
downloadpacman-2379eb1fa629eebd9de8c1a542734243ff2ef471.tar.xz
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>
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index e77e6e5e..67ec240a 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -372,7 +372,7 @@ download_file() {
fi
local ret=0
- eval "$dlcmd || ret=\$?"
+ eval "$dlcmd >&2 || ret=\$?"
if (( ret )); then
[[ ! -s $dlfile ]] && rm -f -- "$dlfile"
error "$(gettext "Failure while downloading %s")" "$filename"