mirror of
https://github.com/NixOS/nix
synced 2025-06-29 10:31:15 +02:00
commit
587c7dcb2b
7 changed files with 20 additions and 23 deletions
|
@ -1202,7 +1202,7 @@ StorePath LocalStore::addToStoreFromDump(
|
|||
Path tempDir;
|
||||
AutoCloseFD tempDirFd;
|
||||
|
||||
bool methodsMatch = (FileIngestionMethod) dumpMethod == hashMethod;
|
||||
bool methodsMatch = ContentAddressMethod(FileIngestionMethod(dumpMethod)) == hashMethod;
|
||||
|
||||
/* If the methods don't match, our streaming hash of the dump is the
|
||||
wrong sort, and we need to rehash. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue