From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#19757: [PATCH] gc: ignore trailing slash or subdirectories for `guix gc -d' Date: Tue, 26 May 2015 22:27:40 +0200 Message-ID: <87y4kbkrsz.fsf@gnu.org> References: <20150202233426.GA28580@venom.fritz.box> <87wq3yogrj.fsf@gnu.org> <20150225202445.GA10407@venom> <87y4kekwqo.fsf_-_@SIRIUS11.sirius11> 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]:43664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxLSI-0002Dw-B7 for bug-guix@gnu.org; Tue, 26 May 2015 16:28:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxLSF-000698-Lo for bug-guix@gnu.org; Tue, 26 May 2015 16:28:06 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:47451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxLSF-000694-Iz for bug-guix@gnu.org; Tue, 26 May 2015 16:28:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YxLSF-0002Jx-CA for bug-guix@gnu.org; Tue, 26 May 2015 16:28:03 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87y4kekwqo.fsf_-_@SIRIUS11.sirius11> (Cyrill Schenkel's message of "Sun, 24 May 2015 14:04:15 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Cyrill Schenkel Cc: 19757-done@debbugs.gnu.org Cyrill Schenkel skribis: > From 7385c2ddd4ca50cb80afcd315287eaadff4d8421 Mon Sep 17 00:00:00 2001 > From: Cyrill Schenkel > Date: Sun, 24 May 2015 13:46:37 +0200 > Subject: [PATCH] gc: ignore trailing slash or subdirectories for `guix gc= -d' > > Fixes . > > * guix/scripts/gc.scm (guix-gc): Convert paths to direct store paths. > * guix/store.scm (direct-store-path): Get rid of subdirectories in store = path. > * tests/guix-gc.sh: New tests. Applied, thank you! I tweaked =E2=80=98direct-store-path=E2=80=99 so that it gracefully handles= non-store file names such as =E2=80=9C/dev/null=E2=80=9D. Ludo=E2=80=99.