download: Improve progress report output.

* guix/build/download.scm (url-fetch): Make current-output-port
  unbuffered.
This commit is contained in:
Ludovic Courtès 2014-04-16 12:25:25 +02:00
parent 58ec6f4ba9
commit 395bea2a53

View file

@ -307,7 +307,10 @@ (define (fetch uri file)
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))