From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:49108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT67a-00082H-VK for guix-patches@gnu.org; Tue, 21 May 2019 10:52:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hT67Y-0008Ek-QA for guix-patches@gnu.org; Tue, 21 May 2019 10:52:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55245) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hT67X-0008DX-Am for guix-patches@gnu.org; Tue, 21 May 2019 10:52:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hT67X-000603-8O for guix-patches@gnu.org; Tue, 21 May 2019 10:52:03 -0400 Subject: [bug#34811] Make package name regexes case-insensitive Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87ftrther0.fsf@nckx> <874l833i0w.fsf@gnu.org> Date: Tue, 21 May 2019 16:51:48 +0200 In-Reply-To: <874l833i0w.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 15 Mar 2019 23:11:11 +0100") Message-ID: <87r28rzwqj.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Tobias Geerinckx-Rice Cc: 34811@debbugs.gnu.org Ping! Ludovic Court=C3=A8s skribis: > Hello! > > Tobias Geerinckx-Rice > skribis: > >> I think they should. >> >> All of our package names are lower case, and it doesn't add value that >> >> $ guix package -A ExifTool >> >> matches zero, zip, zilch, nada, nothing, while >> >> $ guix package -A exiftool >> perl-image-exiftool 11.11 out gnu/packages/photo.scm:208:2 >> >> does. > > Indeed. > >>>>>From 5876eb1fe6d412d7f2a556e0903cd2d87994ab9e Mon Sep 17 00:00:00 2001 >> From: Tobias Geerinckx-Rice >> Date: Mon, 11 Mar 2019 11:37:11 +0100 >> Subject: [PATCH] ui: Match package names case-insensitively. >> >> * guix/ui.scm (make-package-name-regexp): New variable. >> * guix/scripts/package.scm (options->upgrade-predicate, process-query): >> Use it. > > [...] > >> - (make-regexp* (or regexp ""))) >> + (make-package-name-regexp (or regexp ""))) > > I don=E2=80=99t think the abstraction brings much here; I=E2=80=99d prefer > =E2=80=98regexp/icase=E2=80=99 to be inlined. WDYT? > > Otherwise LGTM, thanks! > > Ludo=E2=80=99.