about summary refs log tree commit diff
path: root/src/nix-env/profiles.cc
diff options
context:
space:
mode:
authorChristian Theune <ct@flyingcircus.io>2015-05-20T15·29+0200
committerChristian Theune <ct@flyingcircus.io>2015-05-20T15·29+0200
commit12a888894bc528fbfa9d4c1ef2dbeb5909550894 (patch)
tree0012ded6e603f51098301bebb40c6b59ba7a1628 /src/nix-env/profiles.cc
parentea39c98d419a816029299b99f70455798e66f6b7 (diff)
Mis-read Eelko's request to not make this an option: now, let's not make
it an option. :)
Diffstat (limited to 'src/nix-env/profiles.cc')
-rw-r--r--src/nix-env/profiles.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nix-env/profiles.cc b/src/nix-env/profiles.cc
index f2caa9868209..cedefb157a4b 100644
--- a/src/nix-env/profiles.cc
+++ b/src/nix-env/profiles.cc
@@ -74,7 +74,7 @@ static void makeName(const Path & profile, unsigned int num,
 }
 
 
-Path createGeneration(Path profile, Path outPath, bool lazy)
+Path createGeneration(Path profile, Path outPath)
 {
     /* The new generation number should be higher than old the
        previous ones. */
@@ -85,9 +85,9 @@ Path createGeneration(Path profile, Path outPath, bool lazy)
     if (gens.size() > 0) {
         Generation last = gens.back();
 
-        if (lazy && readLink(last.path) == outPath) {
-            /* If lazy generations are enabled then we only create a 
-               new generation symlink if it differs from the last one.
+        if (readLink(last.path) == outPath) {
+            /* We only create a new generation symlink if it differs
+               from the last one.
 
                This helps keeping gratuitous installs/rebuilds from piling
                up uncontrolled numbers of generations, cluttering up the