aboutsummaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorClément Lassieur <clement@lassieur.org>2018-05-01 01:11:31 +0200
committerClément Lassieur <clement@lassieur.org>2018-05-01 23:29:03 +0200
commitbb6f94c71e9a8dfb1a0f5cad4b0196bdb175375c (patch)
tree5360923d7081e27c434788399ccd40eda7baa6ee /guix
parent6a65b70145f9cba1ddb24556dcefe6123bdd4f1d (diff)
downloadgnu-guix-bb6f94c71e9a8dfb1a0f5cad4b0196bdb175375c.tar
gnu-guix-bb6f94c71e9a8dfb1a0f5cad4b0196bdb175375c.tar.gz
guix system: search: Display all provision names as 'shepherdnames'.
* guix/scripts/system/search.scm (service-type-shepherd-names): Append provision lists together instead of returning a list of provision cars.
Diffstat (limited to 'guix')
-rw-r--r--guix/scripts/system/search.scm7
1 files changed, 3 insertions, 4 deletions
diff --git a/guix/scripts/system/search.scm b/guix/scripts/system/search.scm
index 7229c60a02..955cdd1e95 100644
--- a/guix/scripts/system/search.scm
+++ b/guix/scripts/system/search.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017, 2018 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -59,10 +60,8 @@ provided TYPE has a default value."
(define (service-type-shepherd-names type)
"Return the default names of Shepherd services created for TYPE."
- (match (map shepherd-service-provision
- (service-type-default-shepherd-services type))
- (((names . _) ...)
- names)))
+ (append-map shepherd-service-provision
+ (service-type-default-shepherd-services type)))
(define* (service-type->recutils type port
#:optional (width (%text-width))