* Create a symlink to /nix/var/nix/manifests in /nix/var/nix/gcroots

if it doesn't exist.
This commit is contained in:
Eelco Dolstra 2011-07-20 11:47:00 +00:00
parent d329c3ea9d
commit 0243eea4b9

View file

@ -24,6 +24,14 @@ if (! -e $manifestDir) {
} }
# Make sure that the manifests directory is scanned for GC roots.
my $gcRootsDir = "$stateDir/gcroots";
my $manifestDirLink = "$gcRootsDir/manifests";
if (! -l $manifestDirLink) {
symlink($manifestDir, $manifestDirLink) or die "cannot create symlink `$manifestDirLink'";
}
# Process the URLs specified on the command line. # Process the URLs specified on the command line.
my %narFiles; my %narFiles;
my %patches; my %patches;