diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-10-17 14:01:45 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-10-17 14:01:45 +0000 |
commit | 24737f279e6f1e0fd079609b9397deb867925324 (patch) | |
tree | b2c8b9938227aebd9ebd31b6016f9304443bbb3c /src/nix-env | |
parent | 4bd5cdb90b980bd5e0eec86bf3fcfdd3b07946d1 (diff) |
* Backwards compatibility with old user environment manifests.
Diffstat (limited to 'src/nix-env')
-rw-r--r-- | src/nix-env/main.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/nix-env/main.cc b/src/nix-env/main.cc index f67a07689..f2a995730 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? */ } |