about summary refs log tree commit diff
path: root/src/nix-env/profiles.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-09-14T22·48+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-09-14T22·48+0000
commite0afaf18576e8c04110f4ae8499a311cae261215 (patch)
tree80f2ff88df0a93e8c05dd5296fde8ab63edf4982 /src/nix-env/profiles.cc
parent86cbd93ec1e439fba3e33016272db45d9597fba4 (diff)
* Wow, that bug has been there since r764.
Diffstat (limited to 'src/nix-env/profiles.cc')
-rw-r--r--src/nix-env/profiles.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-env/profiles.cc b/src/nix-env/profiles.cc
index b99024d0791a..ab0c4977bdb5 100644
--- a/src/nix-env/profiles.cc
+++ b/src/nix-env/profiles.cc
@@ -81,8 +81,8 @@ Path createGeneration(Path profile, Path outPath)
        previous ones. */
     int dummy;
     Generations gens = findGenerations(profile, dummy);
-    unsigned int num = gens.size() > 0 ? gens.front().number : 0;
-        
+    unsigned int num = gens.size() > 0 ? gens.back().number : 0;
+
     /* Create the new generation.  Note that addPermRoot() blocks if
        the garbage collector is running to prevent the stuff we've
        build from moving from the temporary roots (which the GC knows)