forked from lix-project/lix
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:
parent
9451ef3731
commit
0705d04dfa
|
@ -6,7 +6,7 @@
|
|||
|
||||
using namespace nix;
|
||||
|
||||
std::string gen = "";
|
||||
std::string gen = "old";
|
||||
bool dryRun = false;
|
||||
|
||||
void runProgramSimple(Path program, const Strings & args)
|
||||
|
|
Loading…
Reference in a new issue