[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/04: installer: Hide shepherd messages.
From: |
guix-commits |
Subject: |
04/04: installer: Hide shepherd messages. |
Date: |
Mon, 6 Apr 2020 09:06:17 -0400 (EDT) |
mothacehe pushed a commit to branch master
in repository guix.
commit b5c2d93d7a223155898dd0ed6932f6acf78ac454
Author: Mathieu Othacehe <address@hidden>
AuthorDate: Wed Apr 1 14:43:35 2020 +0200
installer: Hide shepherd messages.
* gnu/installer.scm (apply-locale): Set "shepherd-message-port" instead of
redirecting stderr to make sure that nothing is printed on console.
---
gnu/installer.scm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gnu/installer.scm b/gnu/installer.scm
index 084f437..75c5a01 100644
--- a/gnu/installer.scm
+++ b/gnu/installer.scm
@@ -113,8 +113,10 @@ version of this file."
(setlocale LC_ALL locale))
;; Restart the documentation viewer so it displays the manual in
- ;; language that corresponds to LOCALE.
- (with-error-to-port (%make-void-port "w")
+ ;; language that corresponds to LOCALE. Make sure that nothing is
+ ;; printed on the console.
+ (parameterize ((shepherd-message-port
+ (%make-void-port "w")))
(lambda ()
(stop-service 'term-tty2)
(start-service 'term-tty2 (list locale)))))))