Eelco Dolstra
7c9d0a5969
nix-collect-garbage: Handle ENOENT
...
Don't barf trying to read a link that just got deleted.
Fixes #575 .
2015-07-17 11:24:25 +02:00
Eelco Dolstra
7a411e01cf
Remove dead code
2015-05-22 11:29:22 +02:00
Eelco Dolstra
4ca5a9dcfd
nix-collect-garbage: Don't call nix-env
...
Also, make sure --delete-older-than doesn't delete the current
generation.
2015-05-21 16:28:30 +02:00
Eelco Dolstra
13493ef97c
nix-collect-garbage: Call collectGarbage() internally
2015-05-21 15:21:38 +02:00
Eelco Dolstra
4441e4cc13
nix-collect-garbage: Don't barf on unreadable directories
...
And don't try to delete generations from unwritable directories.
2015-05-21 15:04:05 +02:00
Eelco Dolstra
8d813fe3e0
nix-collect-garbage: Remove redundant call to getFileType
2015-05-21 14:09:34 +02:00
Luca Bruno
8972f7c14a
nix-collect-garbage: Do not pass an empty argument. Closes #530
2015-05-06 15:17:23 +00:00
William A. Kennington III
0705d04dfa
nix-collect-garbage: Fix deleting old generations
...
The call to nix-env expects a string which represents how old the
derivations are or just "old" which means any generations other than
the current one in use. Currently nix-collect-garbage passes an empty
string to nix-env when using the -d option. This patch corrects the call
to nix-env such that it follows the old behavior.
2015-05-06 11:02:36 +02:00
Luca Bruno
ab2b3d6668
nix-collect-garbage: translate to C++
2015-04-22 15:08:48 +00:00