mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
* Backwards compatibility with old user environment manifests.
This commit is contained in:
parent
4bd5cdb90b
commit
24737f279e
2 changed files with 8 additions and 4 deletions
|
@ -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? */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue