substitute: Remove buffer handling from fetch.
http-fetch does this, so just set the right option. * guix/scripts/substitute.scm (fetch): Remove buffering code, and pass #:buffered? to http-fetch.
This commit is contained in:
parent
f1f6e49190
commit
fbd61b5d3d
@ -204,10 +204,9 @@ connection (typically PORT) is kept open once data has been fetched from URI."
|
||||
(when (or (not port) (port-closed? port))
|
||||
(set! port (guix:open-connection-for-uri
|
||||
uri #:verify-certificate? #f)))
|
||||
(unless (or buffered? (not (file-port? port)))
|
||||
(setvbuf port 'none))
|
||||
(http-fetch uri #:text? #f #:port port
|
||||
#:keep-alive? keep-alive?
|
||||
#:buffered? buffered?
|
||||
#:verify-certificate? #f))))))
|
||||
(else
|
||||
(leave (G_ "unsupported substitute URI scheme: ~a~%")
|
||||
|
Loading…
Reference in New Issue
Block a user