aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-11-22 20:39:51 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-11-22 20:39:51 +0000
commit9486dda1152d18b502fc31ff1d6aed4eba6f2fe3 (patch)
treec89d92a5b7a75529656a493969ee4a1c6349e9eb /src
parentab0bc4999a49efbc8e1c25989662a96e32fa0cc5 (diff)
* Fix nix-push.
Diffstat (limited to 'src')
-rw-r--r--src/nix-instantiate/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-instantiate/main.cc b/src/nix-instantiate/main.cc
index f63789fc4..50a4991a5 100644
--- a/src/nix-instantiate/main.cc
+++ b/src/nix-instantiate/main.cc
@@ -53,8 +53,8 @@ static void printNixExpr(EvalState & state, Expr e)
}
}
- if (ATgetType(e) == AT_LIST) {
- for (ATermIterator i((ATermList) e); i; ++i)
+ if (atMatch(m, e) >> "List" >> es) {
+ for (ATermIterator i(es); i; ++i)
printNixExpr(state, evalExpr(state, *i));
return;
}