mirror of
https://github.com/NixOS/nix
synced 2025-07-02 13:31:48 +02:00
Make the store directory a member variable of Store
This commit is contained in:
parent
1b5b654fe2
commit
7850d3d279
35 changed files with 315 additions and 296 deletions
|
@ -12,7 +12,7 @@ struct LocalStoreAccessor : public FSAccessor
|
|||
|
||||
void assertStore(const Path & path)
|
||||
{
|
||||
Path storePath = toStorePath(path);
|
||||
Path storePath = store->toStorePath(path);
|
||||
if (!store->isValidPath(storePath))
|
||||
throw Error(format("path ‘%1%’ is not a valid store path") % storePath);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue