mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-12-02 02:16:15 +02:00
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
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
using namespace nix;
|
using namespace nix;
|
||||||
|
|
||||||
std::string gen = "";
|
std::string gen = "old";
|
||||||
bool dryRun = false;
|
bool dryRun = false;
|
||||||
|
|
||||||
void runProgramSimple(Path program, const Strings & args)
|
void runProgramSimple(Path program, const Strings & args)
|
||||||
|
|
Loading…
Reference in a new issue