mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02:00
Refactoring: Add allowPath() method
This commit is contained in:
parent
c9ee634f75
commit
cfaad7168e
7 changed files with 21 additions and 17 deletions
|
@ -84,8 +84,7 @@ static void prim_fetchMercurial(EvalState & state, const Pos & pos, Value * * ar
|
|||
mkInt(*state.allocAttr(v, state.symbols.create("revCount")), *revCount);
|
||||
v.attrs->sort();
|
||||
|
||||
if (state.allowedPaths)
|
||||
state.allowedPaths->insert(tree.actualPath);
|
||||
state.allowPath(tree.actualPath);
|
||||
}
|
||||
|
||||
static RegisterPrimOp r_fetchMercurial("fetchMercurial", 1, prim_fetchMercurial);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue