substitute: Close the download port after substitution finished.

* guix/scripts/substitute.scm (progress-substitution): Call 'close-port'
after 'restore-file'.
This commit is contained in:
宋文武 2017-09-16 15:16:04 +08:00
parent d82937fbe0
commit 4220514b8f
No known key found for this signature in database
GPG key ID: 26525665AE727D37

View file

@ -959,6 +959,7 @@ (define* (process-substitution store-item destination
progress)))
;; Unpack the Nar at INPUT into DESTINATION.
(restore-file input destination)
(close-port input)
;; Skip a line after what 'progress-proc' printed, and another one to
;; visually separate substitutions.