lix/src/nix-env
Ricardo M. Correia 700c678c2e nix-env: Minor change to '--delete-generations Nd' semantics
The option '--delete-generations Nd' deletes all generations older than N
days. However, most likely the user does not want to delete the
generation that was active N days ago.

For example, say that you have these 3 generations:

1: <30 days ago>
2: <15 days ago>
3: <1 hour ago>

If you do --delete-generations 7d (say, as part of a cron job), most
likely you still want to keep generation 2, i.e. the generation that was
active 7 days ago (and for most of the past 7 days, in fact).

This patch fixes this issue. Note that this also affects
'nix-collect-garbage --delete-older-than Nd'.

Thanks to @roconnor for noticing the issue!
2014-04-15 15:34:58 +02:00
..
local.mk Update Makefile variable names 2014-02-01 13:54:38 +01:00
nix-env.cc nix-env: Minor change to '--delete-generations Nd' semantics 2014-04-15 15:34:58 +02:00
profiles.cc Set up a minimal /dev in chroots 2014-02-27 23:17:53 +01:00
profiles.hh Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00
user-env.cc Show position info in string concatenation / addition errors 2014-04-04 22:19:33 +02:00
user-env.hh Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00