mirror of
https://github.com/NixOS/nix
synced 2025-06-29 19:03:16 +02:00
* Be stricter in verifying store paths.
This commit is contained in:
parent
87bf541f23
commit
a4d2b22c8c
3 changed files with 9 additions and 4 deletions
|
@ -335,6 +335,7 @@ void ensurePath(const Path & path, PathSet pending)
|
|||
|
||||
StoreExpr storeExprFromPath(const Path & path, PathSet pending)
|
||||
{
|
||||
assertStorePath(path);
|
||||
ensurePath(path, pending);
|
||||
ATerm t = ATreadFromNamedFile(path.c_str());
|
||||
if (!t) throw Error(format("cannot read aterm from `%1%'") % path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue