diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-04-16 12:25:25 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-04-16 12:25:52 +0200 |
commit | 395bea2a53ed7398e52a0a85370a554501af5678 (patch) | |
tree | bfa77309ea808298ce374fd5a8096bfd29420270 | |
parent | 58ec6f4ba9e431246a9367d440ded76bb04b18c1 (diff) | |
download | guix-395bea2a53ed7398e52a0a85370a554501af5678.tar.gz |
download: Improve progress report output.
* guix/build/download.scm (url-fetch): Make current-output-port unbuffered.
-rw-r--r-- | guix/build/download.scm | 5 |
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)) |