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.
This commit is contained in:
William A. Kennington III 2015-05-05 16:43:24 -07:00 committed by Eelco Dolstra
parent 9451ef3731
commit 0705d04dfa

View file

@ -6,7 +6,7 @@
using namespace nix;
std::string gen = "";
std::string gen = "old";
bool dryRun = false;
void runProgramSimple(Path program, const Strings & args)