download: 'url-fetch' closes its HTTP/HTTPS port.

* guix/build/download.scm (url-fetch)[fetch]: In the http/https case,
close PORT before returning.
This commit is contained in:
Ludovic Courtès 2022-08-01 10:56:45 +02:00
parent dc3ad40c6b
commit cce7427f95
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -744,6 +744,7 @@ (define (fetch uri file)
(progress-reporter/file
(uri-abbreviation uri) size)))
(newline)))
(close-port port)
file)))
((ftp)
(false-if-exception* (ftp-fetch uri file