diff options
author | Olivier Brunel <jjk@jjacky.com> | 2014-01-10 16:25:12 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-01-28 20:10:48 +1000 |
commit | e65a752475797eb3e917858190a2679e9cd680b9 (patch) | |
tree | 5406c42f44df13ee72831c68e87077fbfbe45a7c /src | |
parent | ffe7f6d16187e3a4b0bd273c212d92aac73d70f0 (diff) | |
download | 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.c | 5 |
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; |