about summary refs log tree commit diff
path: root/src/libexpr/get-drvs.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-03-09T15·10+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-03-09T15·10+0000
commitb90c00e63fb476d8587ca29f15cbe8008760a584 (patch)
treed78636ff052944b73ef6a066afc04e98714de06b /src/libexpr/get-drvs.cc
parent922697c8b27570b6c76a472266507b73f6b79f7f (diff)
* Regression: semantics of the result of getDerivation() changed.
Diffstat (limited to 'src/libexpr/get-drvs.cc')
-rw-r--r--src/libexpr/get-drvs.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/get-drvs.cc b/src/libexpr/get-drvs.cc
index d3ec6bf6cff5..63e68eb6f489 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;