From 6d5a3d05800f62040dd833e729be269723c70bcf Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sun, 22 Sep 2013 21:26:59 -0400 Subject: [PATCH] Derivations with multiple outputs break the 'link name is store path' assumption Signed-off-by: Shea Levy --- src/script/hydra-s3-backup-collect-garbage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/hydra-s3-backup-collect-garbage b/src/script/hydra-s3-backup-collect-garbage index 9b7b01af..9de97be8 100755 --- a/src/script/hydra-s3-backup-collect-garbage +++ b/src/script/hydra-s3-backup-collect-garbage @@ -32,7 +32,7 @@ closedir DIR; my @actual_roots = (); foreach my $link (@roots) { next if $link eq "." || $link eq ".."; - push @actual_roots, $Nix::Config::storeDir . "/$link"; + push @actual_roots, readlink "$gcRootsDir/$link"; } # Don't delete a nix-cache-info file, if present