diff options
author | Clément Lassieur <clement@lassieur.org> | 2017-02-05 19:58:53 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-02-08 16:17:05 +0100 |
commit | 750a423996f3471aa4807609256f686c8ebf5584 (patch) | |
tree | 4e8e67c5b2364bfe217e1bb908d8da897b8eafc1 /gnu/services | |
parent | 387e175492f960d7d86f34f3b2e43938fa72dbf3 (diff) | |
download | guix-750a423996f3471aa4807609256f686c8ebf5584.tar.gz |
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 <ludo@gnu.org>
Diffstat (limited to 'gnu/services')
-rw-r--r-- | gnu/services/shepherd.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/services/shepherd.scm b/gnu/services/shepherd.scm index d8d5006abf..5831220541 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"))) |