Subject: Re: bug#19757: [PATCH] gc: ignore trailing slash or subdirectories for `guix gc -d'
From: [email-masked] (Ludovic Courtès)
To: Cyrill Schenkel <[email-masked]>
Cc: [email-masked]
Date: Tue, 26 May 2015 22:27:40 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Cyrill Schenkel <[email-masked]> skribis:

> From 7385c2ddd4ca50cb80afcd315287eaadff4d8421 Mon Sep 17 00:00:00 2001
> From: Cyrill Schenkel <[email-masked]>
> Date: Sun, 24 May 2015 13:46:37 +0200
> Subject: [PATCH] gc: ignore trailing slash or subdirectories for `guix gc -d'
>
> Fixes <http://bugs.gnu.org/19757>.
>
> * 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 ‘direct-store-path’ so that it gracefully handles non-store
file names such as “/dev/null”.

Ludo’.