mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
Add flush after downloading message
When the output is going to a file, glibc seems to buffer way too much making it hard to monitor progress while tailing a file. Signed-off-by: Simo Leone <simo@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
b99bebc008
commit
6d8a6aef09
@ -446,6 +446,7 @@ void cb_dl_progress(const char *filename, off_t file_xfered, off_t file_total)
|
||||
if(config->noprogressbar || file_total == -1) {
|
||||
if(file_xfered == 0) {
|
||||
printf(_("downloading %s...\n"), filename);
|
||||
fflush(stdout);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user