diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-04 20:42:25 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-04 20:42:25 +0000 |
commit | 2041499b5e62ab45b23c3f2ceee337cf8d2193bf (patch) | |
tree | 974ad84c615639d6177b19824b31f7b42d0f55d1 /src/libstore/local-store.cc | |
parent | ed86acf02aa5810044b995dc57744d7b51867bb0 (diff) |
Flip boolean
Thanks Matt!
Diffstat (limited to 'src/libstore/local-store.cc')
-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 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<AbstractHashSink> 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<HashSink>(HashType::SHA256); else hashSink = std::make_unique<HashModuloSink>(HashType::SHA256, storePathToHash(printStorePath(info.path))); |