diff options
author | Simo Leone <simo@archlinux.org> | 2008-11-24 23:31:10 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-12-02 07:39:32 -0600 |
commit | 6d8a6aef094c162f46a8b9be6a118a502fabca61 (patch) | |
tree | 0f7226528eb2942dac9dafcbe010efc2219cb38b /src | |
parent | b99bebc008dcf944a88f99bb44ac9029557e4149 (diff) | |
download | pacman-6d8a6aef094c162f46a8b9be6a118a502fabca61.tar.xz |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/callback.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c index 82dabae3..6f41df7c 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -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; } |