From: "Clément Lassieur" <clement@lassieur.org>
To: 29707-done@debbugs.gnu.org
Subject: bug#29707: [PATCH] guix system: search: Display all provision names as 'shepherdnames'.
Date: Tue, 1 May 2018 01:39:47 +0200 [thread overview]
Message-ID: <20180430233947.7342-1-clement@lassieur.org> (raw)
In-Reply-To: <877eooi7t9.fsf@lassieur.org>
* guix/scripts/system/search.scm (service-type-shepherd-names): Append
provision lists together instead of returning a list of provision cars.
---
guix/scripts/system/search.scm | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/guix/scripts/system/search.scm b/guix/scripts/system/search.scm
index 7229c60a0..955cdd1e9 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))
--
2.17.0
next prev parent reply other threads:[~2018-04-30 23:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-14 10:30 bug#29707: "guix system search" doesn't show how to start/stop service Clément Lassieur
2018-04-30 12:53 ` Ludovic Courtès
2018-04-30 23:38 ` Clément Lassieur
2018-04-30 23:39 ` Clément Lassieur [this message]
2018-05-01 19:56 ` bug#29707: [PATCH] guix system: search: Display all provision names as 'shepherdnames' Ludovic Courtès
2018-05-01 21:35 ` Clément Lassieur
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=20180430233947.7342-1-clement@lassieur.org \
--to=clement@lassieur.org \
--cc=29707-done@debbugs.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.