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>
This commit is contained in:
parent
ffe7f6d161
commit
e65a752475
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
for(i = output; i; i = i->next) {
|
||||
fputs((const char *)i->data, stdout);
|
||||
}
|
||||
fflush(stdout);
|
||||
for(i = output; i; i = i->next) {
|
||||
fputs((const char *)i->data, stderr);
|
||||
}
|
||||
fflush(stderr);
|
||||
FREELIST(output);
|
||||
} else {
|
||||
on_progress = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue