1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

Revert "Merge pull request #9546 from NixOS/nixos-23.11"

This reverts commit 587c7dcb2b, reversing
changes made to 864fc85fc8.
This commit is contained in:
John Ericson 2024-02-29 14:39:29 -05:00
parent bcd6b33dbc
commit d6d7d2cb46
7 changed files with 23 additions and 20 deletions

View file

@ -1208,7 +1208,7 @@ StorePath LocalStore::addToStoreFromDump(
Path tempDir;
AutoCloseFD tempDirFd;
bool methodsMatch = ContentAddressMethod(FileIngestionMethod(dumpMethod)) == hashMethod;
bool methodsMatch = (FileIngestionMethod) dumpMethod == hashMethod;
/* If the methods don't match, our streaming hash of the dump is the
wrong sort, and we need to rehash. */