aboutsummaryrefslogtreecommitdiff
path: root/guix/build
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-04-16 12:25:25 +0200
committerLudovic Courtès <ludo@gnu.org>2014-04-16 12:25:52 +0200
commit395bea2a53ed7398e52a0a85370a554501af5678 (patch)
treebfa77309ea808298ce374fd5a8096bfd29420270 /guix/build
parent58ec6f4ba9e431246a9367d440ded76bb04b18c1 (diff)
downloadgnu-guix-395bea2a53ed7398e52a0a85370a554501af5678.tar
gnu-guix-395bea2a53ed7398e52a0a85370a554501af5678.tar.gz
download: Improve progress report output.
* guix/build/download.scm (url-fetch): Make current-output-port unbuffered.
Diffstat (limited to 'guix/build')
-rw-r--r--guix/build/download.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/guix/build/download.scm b/guix/build/download.scm
index 54115a9de2..5d881b93ee 100644
--- a/guix/build/download.scm
+++ b/guix/build/download.scm
@@ -307,7 +307,10 @@ on success."
uri)
#f)))
- (setvbuf (current-output-port) _IOLBF)
+ ;; Make this unbuffered so 'progress-proc' works as expected. _IOLBF means
+ ;; '\n', not '\r', so it's not appropriate here.
+ (setvbuf (current-output-port) _IONBF)
+
(setvbuf (current-error-port) _IOLBF)
(let try ((uri uri))