diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-22 20:39:51 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-22 20:39:51 +0000 |
commit | 9486dda1152d18b502fc31ff1d6aed4eba6f2fe3 (patch) | |
tree | c89d92a5b7a75529656a493969ee4a1c6349e9eb /src/nix-instantiate/main.cc | |
parent | ab0bc4999a49efbc8e1c25989662a96e32fa0cc5 (diff) |
* Fix nix-push.
Diffstat (limited to 'src/nix-instantiate/main.cc')
-rw-r--r-- | src/nix-instantiate/main.cc | 4 |
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; } |