Author: eelco
Date: Wed Jul 20 11:47:00 2011
New Revision: 27837
URL: https://svn.nixos.org/websvn/nix/?rev=27837&sc=1
Log:
* Create a symlink to /nix/var/nix/manifests in /nix/var/nix/gcroots
if it doesn't exist.
Modified:
nix/trunk/scripts/nix-pull.in
Modified: nix/trunk/scripts/nix-pull.in
==============================================================================
--- nix/trunk/scripts/nix-pull.in Wed Jul 20 10:16:35 2011 (r27836)
+++ nix/trunk/scripts/nix-pull.in Wed Jul 20 11:47:00 2011 (r27837)
@@ -24,6 +24,14 @@
}
+# 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;
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits