all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Clément Lassieur" <clement@lassieur.org>
To: guix-devel@gnu.org
Subject: [PATCH 1/2] service: shepherd: Replace spaces with hyphens in file names.
Date: Sun,  5 Feb 2017 19:58:53 +0100	[thread overview]
Message-ID: <20170205185854.4345-2-clement@lassieur.org> (raw)
In-Reply-To: <20170205185854.4345-1-clement@lassieur.org>

* gnu/services/shepherd.scm (shepherd-service-file-name): Update
  'match-lambda' accordingly.

This fixes a bug whereby names of files defining services would be invalid if
'provisions' contained more than one element.
---
 gnu/services/shepherd.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/services/shepherd.scm b/gnu/services/shepherd.scm
index d8d5006ab..583122054 100644
--- a/gnu/services/shepherd.scm
+++ b/gnu/services/shepherd.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -195,6 +196,7 @@ stored."
     (string-append "shepherd-"
                    (string-map (match-lambda
                                  (#\/ #\-)
+                                 (#\  #\-)
                                  (chr chr))
                                provisions)
                    ".scm")))
-- 
2.11.0

  reply	other threads:[~2017-02-05 19:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-05 18:58 [PATCH 0/2] Add a test for the Prosody service Clément Lassieur
2017-02-05 18:58 ` Clément Lassieur [this message]
2017-02-08 14:40   ` [PATCH 1/2] service: shepherd: Replace spaces with hyphens in file names Ludovic Courtès
2017-02-05 18:58 ` [PATCH 2/2] tests: Add 'prosody-service-type' test Clément Lassieur
2017-02-06  9:48   ` Clément Lassieur
2017-02-08 14:47   ` Ludovic Courtès
2017-02-10 18:17     ` [PATCH] " Clément Lassieur
2017-02-10 22:42       ` Ludovic Courtès
2017-02-10 18:27     ` [PATCH 2/2] " Clément Lassieur
2017-02-10 22:24       ` Ludovic Courtès

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=20170205185854.4345-2-clement@lassieur.org \
    --to=clement@lassieur.org \
    --cc=guix-devel@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.