[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/21: installer: Fix bug where window-pipe did not return the proper ex
From: |
John Darrington |
Subject: |
09/21: installer: Fix bug where window-pipe did not return the proper exit status. |
Date: |
Sat, 31 Dec 2016 14:54:18 +0000 (UTC) |
jmd pushed a commit to branch wip-installer
in repository guix.
commit 375828e31255f4d151da53d719f7f99687c7baaa
Author: John Darrington <address@hidden>
Date: Wed Dec 28 12:14:50 2016 +0100
installer: Fix bug where window-pipe did not return the proper exit status.
* gnu/system/installer/utils.scm (window-pipe): Return exit status of cmd.
---
gnu/system/installer/utils.scm | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/gnu/system/installer/utils.scm b/gnu/system/installer/utils.scm
index b8e257d..8623169 100644
--- a/gnu/system/installer/utils.scm
+++ b/gnu/system/installer/utils.scm
@@ -69,10 +69,11 @@
(define* (window-pipe win cmd #:rest args)
"Run CMD ARGS ... sending stdout and stderr to WIN. Returns the exit status
of CMD."
- (let* ((windowp (make-window-port win)))
- (clear win)
- (apply pipe-cmd windowp cmd args)
- (close-port windowp)))
+ (clear win)
+ (let* ((windowp (make-window-port win))
+ (result (apply pipe-cmd windowp cmd args)))
+ (close-port windowp)
+ result))
(define* (pipe-cmd ipipe cmd #:rest args)
"Run CMD ARGS ... sending stdout and stderr to IPIPE. Returns the exit
status of CMD."
- 14/21: installer: Issue message to user on failure of filesystems task., (continued)
- 14/21: installer: Issue message to user on failure of filesystems task., John Darrington, 2016/12/31
- 07/21: installer: Rename module "new" to "guixsd-installer"., John Darrington, 2016/12/31
- 13/21: installer: Replace spawned mount command with the mount syscall., John Darrington, 2016/12/31
- 11/21: installer: Improve install page., John Darrington, 2016/12/31
- 10/21: installer: Replace "%temporary-configuration-file-port" with "config-file"., John Darrington, 2016/12/31
- 19/21: installer: Use global variable instead of string literal for "/gnu"., John Darrington, 2016/12/31
- 17/21: installer: Change N_ from a procedure to a macro., John Darrington, 2016/12/31
- 18/21: installer: Change the order of the filesystem task conditions., John Darrington, 2016/12/31
- 15/21: installer: Allow users to remove mount points during configuration., John Darrington, 2016/12/31
- 21/21: installer: Add a console-keymap service., John Darrington, 2016/12/31
- 09/21: installer: Fix bug where window-pipe did not return the proper exit status.,
John Darrington <=