From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Cl=C3=A9ment=20Lassieur?= Subject: [PATCH 1/2] service: shepherd: Replace spaces with hyphens in file names. Date: Sun, 5 Feb 2017 19:58:53 +0100 Message-ID: <20170205185854.4345-2-clement@lassieur.org> References: <20170205185854.4345-1-clement@lassieur.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caS2n-00047Y-AA for guix-devel@gnu.org; Sun, 05 Feb 2017 14:00:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1caS2l-0000bJ-4x for guix-devel@gnu.org; Sun, 05 Feb 2017 14:00:13 -0500 Received: from mail.lassieur.org ([83.152.10.219]:54950) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1caS2k-0000ZA-SM for guix-devel@gnu.org; Sun, 05 Feb 2017 14:00:11 -0500 Received: from localhost.localdomain (unknown [62.119.166.9]) by mail.lassieur.org (Postfix) with ESMTPSA id 797766400B8 for ; Sun, 5 Feb 2017 19:59:58 +0100 (CET) In-Reply-To: <20170205185854.4345-1-clement@lassieur.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.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 invali= d 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 =C2=A9 2013, 2014, 2015, 2016 Ludovic Court=C3=A8s +;;; Copyright =C2=A9 2017 Cl=C3=A9ment Lassieur ;;; ;;; This file is part of GNU Guix. ;;; @@ -195,6 +196,7 @@ stored." (string-append "shepherd-" (string-map (match-lambda (#\/ #\-) + (#\ #\-) (chr chr)) provisions) ".scm"))) --=20 2.11.0