diff options
author | Marius Bakke <marius@gnu.org> | 2020-12-13 01:10:06 +0100 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2020-12-13 01:10:06 +0100 |
commit | a7737f0ead2293536b9d0ba253de4673378a0ffa (patch) | |
tree | cf80318b0a9903aa56a69c316659a52f94abbe27 /gnu/installer/utils.scm | |
parent | ba47c83570b6d1824738ef5ff8580e7581990699 (diff) | |
parent | 1adeb744560af94687eb7c3780c7145c52674070 (diff) | |
download | guix-a7737f0ead2293536b9d0ba253de4673378a0ffa.tar.gz |
Merge branch 'master' into ungrafting
Diffstat (limited to 'gnu/installer/utils.scm')
-rw-r--r-- | gnu/installer/utils.scm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/installer/utils.scm b/gnu/installer/utils.scm index a7fa66a199..bb97bc5560 100644 --- a/gnu/installer/utils.scm +++ b/gnu/installer/utils.scm @@ -18,6 +18,7 @@ ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. (define-module (gnu installer utils) + #:use-module (gnu services herd) #:use-module (guix utils) #:use-module (guix build utils) #:use-module (guix i18n) @@ -43,7 +44,9 @@ with-server-socket current-server-socket current-clients - send-to-clients)) + send-to-clients + + with-silent-shepherd)) (define* (read-lines #:optional (port (current-input-port))) "Read lines from PORT and return them as a list." @@ -233,3 +236,9 @@ accepting socket." (current-clients (reverse remainder)) exp) + +(define-syntax-rule (with-silent-shepherd exp ...) + "Evaluate EXP while discarding shepherd messages." + (parameterize ((shepherd-message-port + (%make-void-port "w"))) + exp ...)) |