about summary refs log tree commit diff
diff options
context:
space:
mode:
-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;