1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-16 07:22:43 +01:00

build-remote: Don't require signatures

This restores the old behaviour.
This commit is contained in:
Eelco Dolstra 2017-05-01 20:03:25 +02:00
parent 031d70e500
commit 3a5f04f48c
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
6 changed files with 20 additions and 16 deletions

View file

@ -915,6 +915,8 @@ void LocalStore::invalidatePath(State & state, const Path & path)
void LocalStore::addToStore(const ValidPathInfo & info, const ref<std::string> & nar,
bool repair, bool dontCheckSigs, std::shared_ptr<FSAccessor> accessor)
{
assert(info.narHash);
Hash h = hashString(htSHA256, *nar);
if (h != info.narHash)
throw Error(format("hash mismatch importing path %s; expected hash %s, got %s") %