From b90c00e63fb476d8587ca29f15cbe8008760a584 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 9 Mar 2006 15:10:01 +0000 Subject: [PATCH] * Regression: semantics of the result of getDerivation() changed. --- src/libexpr/get-drvs.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libexpr/get-drvs.cc b/src/libexpr/get-drvs.cc index d3ec6bf6c..63e68eb6f 100644 --- a/src/libexpr/get-drvs.cc +++ b/src/libexpr/get-drvs.cc @@ -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;