diff options
author | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-06-04 17:21:21 -0400 |
---|---|---|
committer | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-06-04 17:21:21 -0400 |
commit | d614166cb6864f2448b9e03f8dccccf301dc541e (patch) | |
tree | c9d968dc4537d23afbf387989e63a8e76eb53f26 /src | |
parent | 94ddea9e2fffe2c0818653c509f881ae00f14d93 (diff) |
Fix condition error and make test suite pass
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/local-store.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<AbstractHashSink> hashSink; - if (info->ca || !info->references.count(info->path)) + if (!info->ca || !info->references.count(info->path)) hashSink = std::make_unique<HashSink>(*info->narHash.type); else hashSink = std::make_unique<HashModuloSink>(*info->narHash.type, storePathToHash(printStorePath(info->path))); |