forked from lix-project/hydra
Doh - clear $NIX_PATH properly
This commit is contained in:
parent
2865569392
commit
fdc516289c
|
@ -205,14 +205,14 @@ static void findJobs(EvalState & state, XMLWriter & doc,
|
||||||
|
|
||||||
void run(Strings args)
|
void run(Strings args)
|
||||||
{
|
{
|
||||||
|
/* Prevent undeclared dependencies in the evaluation via
|
||||||
|
$NIX_PATH. */
|
||||||
|
unsetenv("NIX_PATH");
|
||||||
|
|
||||||
EvalState state;
|
EvalState state;
|
||||||
Path releaseExpr;
|
Path releaseExpr;
|
||||||
AutoArgs autoArgs;
|
AutoArgs autoArgs;
|
||||||
|
|
||||||
/* Prevent undeclared dependencies in the evaluation via
|
|
||||||
$HYDRA_PATH. */
|
|
||||||
unsetenv("HYDRA_PATH");
|
|
||||||
|
|
||||||
for (Strings::iterator i = args.begin(); i != args.end(); ) {
|
for (Strings::iterator i = args.begin(); i != args.end(); ) {
|
||||||
string arg = *i++;
|
string arg = *i++;
|
||||||
if (arg == "--arg" || arg == "--argstr") {
|
if (arg == "--arg" || arg == "--argstr") {
|
||||||
|
|
Loading…
Reference in a new issue