From 2041499b5e62ab45b23c3f2ceee337cf8d2193bf Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 4 Jun 2020 20:42:25 +0000 Subject: [PATCH] Flip boolean Thanks Matt! --- src/libstore/local-store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 804d4c514..ba5436ca4 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -1007,7 +1007,7 @@ void LocalStore::addToStore(const ValidPathInfo & info, Source & source, /* While restoring the path from the NAR, compute the hash of the NAR. */ std::unique_ptr hashSink; - if (info.ca.has_value() || !info.references.count(info.path)) + if (!info.ca.has_value() || !info.references.count(info.path)) hashSink = std::make_unique(HashType::SHA256); else hashSink = std::make_unique(HashType::SHA256, storePathToHash(printStorePath(info.path)));