* `nix-collect-garbage' now actually performs a garbage collection, it
doesn't just print the set of paths that should be deleted. So there is no more need to pipe the result into `nix-store --delete' (which doesn't even exist anymore).
This commit is contained in:
parent
818047881e
commit
fdec72c6cc
5 changed files with 102 additions and 73 deletions
|
@ -222,7 +222,7 @@ static void opGC(Strings opFlags, Strings opArgs)
|
|||
if (flag == "--print-live") subOp = soPrintLive;
|
||||
else if (flag == "--print-dead") subOp = soPrintDead;
|
||||
else if (flag == "--delete") subOp = soDelete;
|
||||
else throw UsageError(format("bad sub-operation `%1% in GC") % flag);
|
||||
else throw UsageError(format("bad sub-operation `%1%' in GC") % flag);
|
||||
|
||||
Paths roots;
|
||||
while (1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue