diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-05-31T09·18+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-05-31T09·48+0200 |
commit | c2d27d30cfe000c4adff91e6cbde63c2a5b92b43 (patch) | |
tree | 4b08416fcedffc1f8692ac3bcf7992bdc0fea5d2 /src/libstore/local-store.cc | |
parent | e4f0ba55ac749f34ee82eef400051c0f0a4f5ec4 (diff) |
nix-copy-closure / build-remote.pl: Disable signature checking
This restores the Nix 1.11 behaviour.
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r-- | src/libstore/local-store.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index b44384957ca6..cd3a74d80d82 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -904,14 +904,15 @@ void LocalStore::invalidatePath(State & state, const Path & path) } -void LocalStore::addToStore(const ValidPathInfo & info, const std::string & nar, bool repair) +void LocalStore::addToStore(const ValidPathInfo & info, const std::string & nar, + bool repair, bool dontCheckSigs) { Hash h = hashString(htSHA256, nar); if (h != info.narHash) throw Error(format("hash mismatch importing path ‘%s’; expected hash ‘%s’, got ‘%s’") % info.path % info.narHash.to_string() % h.to_string()); - if (requireSigs && !info.checkSignatures(publicKeys)) + if (requireSigs && !dontCheckSigs && !info.checkSignatures(publicKeys)) throw Error(format("cannot import path ‘%s’ because it lacks a valid signature") % info.path); addTempRoot(info.path); |