mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +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
|
@ -146,7 +146,7 @@ int main(int argc, char * * argv)
|
|||
Path storePath;
|
||||
if (args.size() == 2) {
|
||||
expectedHash = parseHash16or32(ht, args[1]);
|
||||
storePath = makeFixedOutputPath(unpack, ht, expectedHash, name);
|
||||
storePath = store->makeFixedOutputPath(unpack, ht, expectedHash, name);
|
||||
if (store->isValidPath(storePath))
|
||||
hash = expectedHash;
|
||||
else
|
||||
|
@ -197,7 +197,7 @@ int main(int argc, char * * argv)
|
|||
into the Nix store. */
|
||||
storePath = store->addToStore(name, tmpFile, unpack, ht);
|
||||
|
||||
assert(storePath == makeFixedOutputPath(unpack, ht, hash, name));
|
||||
assert(storePath == store->makeFixedOutputPath(unpack, ht, hash, name));
|
||||
}
|
||||
|
||||
if (!printPath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue