From 00fe1a506f045e612b0564ab0b5aff3917e26bd3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 11 Feb 2004 10:25:31 +0000 Subject: * When creating a new generation, also make the normal form of the derivation (i.e., the closure store expression) a root of the garbage collector. This ensures that running `nix-collect-garbage --no-successors' is safe. --- src/nix-env/profiles.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/nix-env/profiles.hh') diff --git a/src/nix-env/profiles.hh b/src/nix-env/profiles.hh index 2ce468dfa8..4231344127 100644 --- a/src/nix-env/profiles.hh +++ b/src/nix-env/profiles.hh @@ -28,7 +28,8 @@ typedef list Generations; profile, sorted by generation number. */ Generations findGenerations(Path profile, int & curGen); -Path createGeneration(Path profile, Path outPath, Path drvPath); +Path createGeneration(Path profile, Path outPath, + Path drvPath, Path clrPath); void switchLink(Path link, Path target); -- cgit 1.4.1