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
1 changed files with 1 additions and 0 deletions

View File

@ -959,6 +959,7 @@ DESTINATION as a nar file. Verify the substitute against ACL."
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.