* Regression: semantics of the result of getDerivation() changed.

This commit is contained in:
Eelco Dolstra 2006-03-09 15:10:01 +00:00
parent 922697c8b2
commit b90c00e63f

View File

@ -148,7 +148,7 @@ static void getDerivations(EvalState & state, Expr e,
for (ATermIterator i(es); i; ++i) {
startNest(nest, lvlDebug,
format("evaluating list element"));
if (!getDerivation(state, *i, drvs, doneExprs))
if (getDerivation(state, *i, drvs, doneExprs))
getDerivations(state, *i, drvs, doneExprs, attrPathRest);
}
} else {
@ -156,7 +156,7 @@ static void getDerivations(EvalState & state, Expr e,
if (!e2) throw Error(format("list index %1% in selection path not found") % attrIndex);
startNest(nest, lvlDebug,
format("evaluating list element"));
if (!getDerivation(state, e2, drvs, doneExprs))
if (getDerivation(state, e2, drvs, doneExprs))
getDerivations(state, e2, drvs, doneExprs, attrPathRest);
}
return;