summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlivier Brunel <jjk@jjacky.com>2014-01-10 16:25:12 +0100
committerAllan McRae <allan@archlinux.org>2014-01-28 11:10:48 +0100
commite65a752475797eb3e917858190a2679e9cd680b9 (patch)
tree5406c42f44df13ee72831c68e87077fbfbe45a7c /src
parentffe7f6d16187e3a4b0bd273c212d92aac73d70f0 (diff)
downloadpacman-e65a752475797eb3e917858190a2679e9cd680b9.tar.gz
pacman-e65a752475797eb3e917858190a2679e9cd680b9.tar.xz
pacman: Fix delayed warnings/errors sent to stdout not stderr
Signed-off-by: Olivier Brunel <jjk@jjacky.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/callback.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index 506692f0..8c0fab55 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -528,10 +528,11 @@ void cb_progress(alpm_progress_t event, const char *pkgname, int percent,
if(percent == 100) {
alpm_list_t *i = NULL;
on_progress = 0;
+ fflush(stdout);
for(i = output; i; i = i->next) {
- fputs((const char *)i->data, stdout);
+ fputs((const char *)i->data, stderr);
}
- fflush(stdout);
+ fflush(stderr);
FREELIST(output);
} else {
on_progress = 1;