[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/05: services: shepherd: Replace spaces with hyphens in file names.
From: |
Ludovic Courtès |
Subject: |
02/05: services: shepherd: Replace spaces with hyphens in file names. |
Date: |
Wed, 8 Feb 2017 10:17:43 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 750a423996f3471aa4807609256f686c8ebf5584
Author: Clément Lassieur <address@hidden>
Date: Sun Feb 5 19:58:53 2017 +0100
services: shepherd: Replace spaces with hyphens in file names.
This fixes a bug whereby names of files defining services would be
invalid if 'provisions' contained more than one element.
* gnu/services/shepherd.scm (shepherd-service-file-name): Update
'match-lambda' accordingly.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/services/shepherd.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gnu/services/shepherd.scm b/gnu/services/shepherd.scm
index d8d5006..5831220 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 <address@hidden>
+;;; Copyright © 2017 Clément Lassieur <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -195,6 +196,7 @@ stored."
(string-append "shepherd-"
(string-map (match-lambda
(#\/ #\-)
+ (#\ #\-)
(chr chr))
provisions)
".scm")))