Derivations with multiple outputs break the 'link name is store path' assumption

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-09-22 21:26:59 -04:00
parent c476d13586
commit 6d5a3d0580

View file

@ -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