mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 13:28:12 -05:00
download: Improve progress report output.
* guix/build/download.scm (url-fetch): Make current-output-port unbuffered.
This commit is contained in:
parent
58ec6f4ba9
commit
395bea2a53
1 changed files with 4 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue