From e65a752475797eb3e917858190a2679e9cd680b9 Mon Sep 17 00:00:00 2001 From: Olivier Brunel Date: Fri, 10 Jan 2014 16:25:12 +0100 Subject: pacman: Fix delayed warnings/errors sent to stdout not stderr Signed-off-by: Olivier Brunel Signed-off-by: Allan McRae --- src/pacman/callback.c | 5 +++-- 1 file 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; -- cgit v1.2.3-70-g09d2