@philiptaron's lix workspace
Find a file
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
config Add config.guess, config.sub and install-sh 2013-11-25 11:26:02 +00:00
corepkgs derivation: Don't require certain function arguments 2014-04-04 21:53:47 +02:00
doc nix-env: Minor change to '--delete-generations Nd' semantics 2014-04-15 15:34:58 +02:00
misc Ensure that systemd units to into lib, not lib64 2014-04-08 13:51:34 +02:00
mk Sync with make-rules repo 2014-04-03 17:37:14 +02:00
perl Fix "make dist" 2014-02-01 14:38:12 +01:00
scripts Don't barf when installing as root 2014-04-10 23:42:48 +02:00
src nix-env: Minor change to '--delete-generations Nd' semantics 2014-04-15 15:34:58 +02:00
tests Fix test evaluation 2014-04-15 15:32:27 +02:00
.gitignore Add docbook icons to the distribution 2014-04-09 14:52:43 +02:00
AUTHORS * Put something in here. 2004-11-07 20:30:02 +00:00
bootstrap.sh bootstrap: Simplify & make more robust. 2011-09-06 12:11:05 +00:00
build.nix Add an experimental nix-make file 2012-05-21 09:43:01 -04:00
configure.ac Build/install manual 2014-02-01 11:30:21 +01:00
COPYING * Change this to LGPL to keep the government happy. 2006-04-25 16:41:06 +00:00
dev-shell Hack to clean up tests/test-tmp 2013-08-21 12:53:46 +02:00
INSTALL * Autoconf / Automake configuration and building. 2003-04-04 16:14:56 +00:00
local.mk Install missing Boost headers 2014-03-05 11:11:24 +01:00
Makefile Install systemd units 2014-04-07 11:50:55 +02:00
Makefile.config.in Generate release notes again 2014-03-12 14:24:29 +01:00
nix.spec.in Ensure that systemd units to into lib, not lib64 2014-04-08 13:51:34 +02:00
README * Install documentation in $(docdir) (i.e. share/doc/nix). 2008-11-19 13:19:09 +00:00
release.nix Generate release notes again 2014-03-12 14:24:29 +01:00
version Bump version to 1.8 2014-04-11 11:15:24 +02:00

Nix is a purely functional package manager.  For installation and
usage instructions, please read the manual, which can be found in
`docs/manual/manual.html', and additionally at the Nix website at
<http://nixos.org/>.


Acknowledgments

This product includes software developed by the OpenSSL Project for
use in the OpenSSL Toolkit (http://www.OpenSSL.org/).