From d614166cb6864f2448b9e03f8dccccf301dc541e Mon Sep 17 00:00:00 2001 From: Carlo Nucera Date: Thu, 4 Jun 2020 17:21:21 -0400 Subject: [PATCH] Fix condition error and make test suite pass --- 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 ba5436ca4..37c9a2bc3 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -1265,7 +1265,7 @@ bool LocalStore::verifyStore(bool checkContents, RepairFlag repair) printMsg(Verbosity::Talkative, "checking contents of '%s'", printStorePath(i)); std::unique_ptr hashSink; - if (info->ca || !info->references.count(info->path)) + if (!info->ca || !info->references.count(info->path)) hashSink = std::make_unique(*info->narHash.type); else hashSink = std::make_unique(*info->narHash.type, storePathToHash(printStorePath(info->path)));