From: 宋文武 <iyzsong@member.fsf.org>
To: guix-devel@gnu.org
Subject: [PATCH] substitute: Close the download port after substitution finished.
Date: Sat, 16 Sep 2017 15:31:31 +0800 [thread overview]
Message-ID: <20170916073131.28348-1-iyzsong@member.fsf.org> (raw)
* guix/scripts/substitute.scm (progress-substitution): Call 'close-port'
after 'restore-file'.
---
guix/scripts/substitute.scm | 1 +
1 file changed, 1 insertion(+)
diff --git a/guix/scripts/substitute.scm b/guix/scripts/substitute.scm
index 19212d749..3dcf42d0d 100755
--- a/guix/scripts/substitute.scm
+++ b/guix/scripts/substitute.scm
@@ -961,6 +961,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-reporter/file' printed, and another
;; one to visually separate substitutions.
--
2.13.3
next reply other threads:[~2017-09-16 7:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-16 7:31 宋文武 [this message]
2017-09-17 20:12 ` [PATCH] substitute: Close the download port after substitution finished Ludovic Courtès
2017-09-18 11:11 ` 宋文武
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170916073131.28348-1-iyzsong@member.fsf.org \
--to=iyzsong@member.fsf.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.