From 0705d04dfab60b0c98fbd170b9cc3fcd073918bb Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Tue, 5 May 2015 16:43:24 -0700 Subject: 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. --- src/nix-collect-garbage/nix-collect-garbage.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nix-collect-garbage/nix-collect-garbage.cc b/src/nix-collect-garbage/nix-collect-garbage.cc index 568a1fa7daa4..366a378a1138 100644 --- a/src/nix-collect-garbage/nix-collect-garbage.cc +++ b/src/nix-collect-garbage/nix-collect-garbage.cc @@ -6,7 +6,7 @@ using namespace nix; -std::string gen = ""; +std::string gen = "old"; bool dryRun = false; void runProgramSimple(Path program, const Strings & args) -- cgit 1.4.1