mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 15:02:42 +01:00
makeFixedOutputPath(): Drop superfluous HashType argument
This commit is contained in:
parent
06bbfb6004
commit
ee22a91ab8
12 changed files with 27 additions and 29 deletions
|
|
@ -232,7 +232,7 @@ Path Downloader::downloadCached(ref<Store> store, const string & url_, bool unpa
|
|||
|
||||
Path expectedStorePath;
|
||||
if (expectedHash) {
|
||||
expectedStorePath = store->makeFixedOutputPath(unpack, expectedHash.type, expectedHash, name);
|
||||
expectedStorePath = store->makeFixedOutputPath(unpack, expectedHash, name);
|
||||
if (store->isValidPath(expectedStorePath))
|
||||
return expectedStorePath;
|
||||
}
|
||||
|
|
@ -282,7 +282,7 @@ Path Downloader::downloadCached(ref<Store> store, const string & url_, bool unpa
|
|||
StringSink sink;
|
||||
dumpString(*res.data, sink);
|
||||
Hash hash = hashString(expectedHash ? expectedHash.type : htSHA256, *res.data);
|
||||
info.path = store->makeFixedOutputPath(false, hash.type, hash, name);
|
||||
info.path = store->makeFixedOutputPath(false, hash, name);
|
||||
info.narHash = hashString(htSHA256, *sink.s);
|
||||
store->addToStore(info, *sink.s, false, true);
|
||||
storePath = info.path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue