Files
lix/doc/manual
Ricardo M. CorreiaandEelco Dolstra 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
..
2013-08-21 12:53:51 +02:00
2013-11-19 00:04:11 +01:00
2014-02-28 14:01:31 +01:00
2014-04-08 16:10:25 +02:00
2014-04-09 14:52:43 +02:00
2014-04-11 15:11:28 +02:00
2012-10-03 17:59:23 -04:00
2009-11-05 09:07:43 +00:00
2014-02-19 17:08:01 +01:00
2012-07-29 14:37:40 -04:00
2007-12-31 02:52:17 +00:00
2013-09-02 13:19:34 +02:00
2014-04-08 16:28:39 +02:00
2004-10-31 17:08:48 +00:00
2012-05-11 17:39:06 -04:00
2014-03-11 13:16:21 +01:00