lix/doc/manual
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
..
figures Fix corrupt PNG 2013-08-21 12:53:51 +02:00
images/callouts Add docbook icons to the distribution 2014-04-09 14:52:43 +02:00
bugs.xml * Troubleshooting information on fixing a b0rked Berkeley DB database. 2006-11-30 11:24:10 +00:00
build-farm.xml Support mandatory system features in the build hook 2012-04-30 17:22:45 -04:00
builtins.xml Add a toJSON primop 2013-11-19 00:04:11 +01:00
conf-file.xml Also provide an option for setting the curl connection timeout 2014-02-26 16:07:43 +01:00
env-common.xml Document NIX_SHOW_STATS and NIX_COUNT_CALLS 2013-10-24 02:22:24 +02:00
glossary.xml Update nix-push manpage and document the binary cache format 2012-11-06 15:49:53 +01:00
hacking.xml Typo 2014-02-28 14:01:31 +01:00
installation.xml Update installation instructions 2014-04-08 16:09:56 +02:00
introduction.xml Remove redundant stuff 2014-04-08 16:10:25 +02:00
local.mk Add docbook icons to the distribution 2014-04-09 14:52:43 +02:00
manual.xml Bump date 2014-04-11 15:11:28 +02:00
nix-build.xml nix-instantiate: Add a flag --expr / -E to read expressions from the command line 2014-02-19 16:30:19 +01:00
nix-channel.xml Use a shorter Nixpkgs channel URL 2012-11-09 13:33:35 +01:00
nix-collect-garbage.xml nix-env: Minor change to '--delete-generations Nd' semantics 2014-04-15 15:34:58 +02:00
nix-copy-closure.xml nix-copy-closure: Add flag ‘--use-substitutes’ 2012-11-23 16:20:16 +01:00
nix-daemon.xml Rename nix-worker to nix-daemon 2012-10-03 17:59:23 -04:00
nix-env.xml nix-env: Minor change to '--delete-generations Nd' semantics 2014-04-15 15:34:58 +02:00
nix-hash.xml nix-prefetch-url: Improve option handling 2012-10-23 18:04:11 +02:00
nix-install-package.xml * Remove the redundant <sections> around refentries. 2009-07-14 14:58:12 +00:00
nix-instantiate.xml nix-instantiate: Rename --eval-only to --eval, --parse-only to --parse 2014-02-19 16:34:24 +01:00
nix-lang-ref.xml * Various updates. 2009-11-05 09:07:43 +00:00
nix-prefetch-url.xml nix-prefetch-url: Improve option handling 2012-10-23 18:04:11 +02:00
nix-pull.xml * Remove the redundant <sections> around refentries. 2009-07-14 14:58:12 +00:00
nix-push.xml Add support for uncompressed NARs in binary caches 2013-07-01 21:03:14 +02:00
nix-shell.xml nix-shell: Add --packages flag 2014-02-19 17:08:01 +01:00
nix-store.xml nix-store --gc --max-freed: Support a unit specifier 2014-02-17 14:48:50 +01:00
opt-common-syn.xml Document the --option flag 2012-07-29 14:37:40 -04:00
opt-common.xml nix-instantiate: Add a flag --expr / -E to read expressions from the command line 2014-02-19 16:30:19 +01:00
opt-inst-syn.xml * More documentation. 2007-12-31 02:52:17 +00:00
package-management.xml Fix manual error 2013-09-02 13:19:34 +02:00
quick-start.xml Simplify quick start section 2014-04-08 16:28:39 +02:00
quote-literals.xsl Generate release notes again 2014-03-12 14:24:29 +01:00
release-notes.xml Don't barf when installing as root 2014-04-10 23:42:48 +02:00
schemas.xml
style.css Manual updates 2012-05-11 17:39:06 -04:00
troubleshooting.xml Fix typos, especially those that end up in the Nix manual 2013-08-26 11:15:22 +02:00
writing-nix-expressions.xml Fix typos 2014-03-11 13:16:21 +01:00