From 24737f279e6f1e0fd079609b9397deb867925324 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 17 Oct 2006 14:01:45 +0000 Subject: * Backwards compatibility with old user environment manifests. --- src/nix-env/main.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/nix-env/main.cc') diff --git a/src/nix-env/main.cc b/src/nix-env/main.cc index f67a0768979b..f2a9957306c9 100644 --- a/src/nix-env/main.cc +++ b/src/nix-env/main.cc @@ -107,10 +107,11 @@ struct AddPos : TermFun { ATerm operator () (ATerm e) { - ATerm x, y, z; - if (matchBind(e, x, y, z)) return e; - if (matchBind2(e, x, y)) + ATerm x, y; + if (matchObsoleteBind(e, x, y)) return makeBind(x, y, makeNoPos()); + if (matchObsoleteStr(e, x)) + return makeStr(x, ATempty); return e; } }; @@ -921,6 +922,8 @@ static void opQuery(Globals & globals, else table.push_back(columns); + cout.flush(); + } catch (AssertionError & e) { /* !!! hm, maybe we should give some sort of warning here? */ } -- cgit 1.4.1