aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/local-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-05-01 20:03:25 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-05-01 20:03:25 +0200
commit3a5f04f48cc39eec5cc454e387aa290e08295aff (patch)
tree0686a99ce37988e1455f748a72f78a132c8af45f /src/libstore/local-store.cc
parent031d70e5009fcce58afabc9113d5a5de4a16b19a (diff)
build-remote: Don't require signatures
This restores the old behaviour.
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 5a98454ab..c8e61126c 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -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’") %