From 0243eea4b92ca1598353e31b7e3c0d195c903221 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 20 Jul 2011 11:47:00 +0000 Subject: * Create a symlink to /nix/var/nix/manifests in /nix/var/nix/gcroots if it doesn't exist. --- scripts/nix-pull.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts') diff --git a/scripts/nix-pull.in b/scripts/nix-pull.in index d2979721aafb..51c7e681a5a7 100644 --- a/scripts/nix-pull.in +++ b/scripts/nix-pull.in @@ -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. my %narFiles; my %patches; -- cgit 1.4.1