From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 1/7] import cran: Remove more invalid characters from package names. Date: Mon, 23 May 2016 23:54:14 +0200 Message-ID: <877fekl9tl.fsf@gnu.org> References: <1464017539-1478-1-git-send-email-ricardo.wurmus@mdc-berlin.de> 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]:56084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4xnq-0002CS-FO for guix-devel@gnu.org; Mon, 23 May 2016 17:54:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b4xnm-0005Zh-8l for guix-devel@gnu.org; Mon, 23 May 2016 17:54:21 -0400 In-Reply-To: <1464017539-1478-1-git-send-email-ricardo.wurmus@mdc-berlin.de> (Ricardo Wurmus's message of "Mon, 23 May 2016 17:32:13 +0200") 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: Ricardo Wurmus Cc: guix-devel@gnu.org Ricardo Wurmus skribis: > * guix/import/cran.scm (guix-name): Replace period and underscore with > dash; always prepend package names with "r-". [...] > + (string-append "r-" (string-downcase > + (regexp-substitute/global #f "(_|\\.)" name > + 'pre "-" 'post)))) I=E2=80=99d have a preference for =E2=80=98string-map=E2=80=99 here. WDYT? Otherwise looks good! Ludo=E2=80=99.