mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
download: Remove old-Guile leftovers.
This is a followup to 36626c556e
.
* guix/build/download.scm (http-fetch): Rename 'port-or-bv' to 'port'.
Assume (port? port) is always true, and remove other branch.
This commit is contained in:
parent
9b396c0cab
commit
b3ac341d4e
1 changed files with 6 additions and 9 deletions
|
@ -774,7 +774,7 @@ (define headers
|
|||
#:timeout timeout
|
||||
#:verify-certificate?
|
||||
verify-certificate?))
|
||||
((resp bv-or-port)
|
||||
((resp port)
|
||||
(http-get uri #:port connection #:decode-body? #f
|
||||
#:streaming? #t
|
||||
#:headers headers))
|
||||
|
@ -787,14 +787,11 @@ (define headers
|
|||
(begin
|
||||
(call-with-output-file file
|
||||
(lambda (p)
|
||||
(if (port? bv-or-port)
|
||||
(begin
|
||||
(dump-port* bv-or-port p
|
||||
(dump-port* port p
|
||||
#:buffer-size %http-receive-buffer-size
|
||||
#:reporter (progress-reporter/file
|
||||
(uri-abbreviation uri) size))
|
||||
(newline))
|
||||
(put-bytevector p bv-or-port))))
|
||||
(newline)))
|
||||
file))
|
||||
((301 ; moved permanently
|
||||
302 ; found (redirection)
|
||||
|
|
Loading…
Reference in a new issue