diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-02 23:30:38 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-03 04:44:24 +0000 |
commit | 3c78ac348c3a32fa6d78d3c56645901513c2e731 (patch) | |
tree | b4ff0079484b825f884eb98ff88655142d386f58 /src/libstore/local-store.cc | |
parent | fecff16a6e8bffce9a404b1508fec375e83ec01e (diff) | |
parent | 406dbb7fce32f7d80b02f560d91c956698b58d6e (diff) |
Merge remote-tracking branch 'obsidian/no-hash-type-unknown' into validPathInfo-ca-proper-datatype
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r-- | src/libstore/local-store.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 93697ae47..5f0053753 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -1269,9 +1269,9 @@ bool LocalStore::verifyStore(bool checkContents, RepairFlag repair) std::unique_ptr<AbstractHashSink> hashSink; if (info->ca || !info->references.count(info->path)) - hashSink = std::make_unique<HashSink>(info->narHash.type); + hashSink = std::make_unique<HashSink>(*info->narHash.type); else - hashSink = std::make_unique<HashModuloSink>(info->narHash.type, storePathToHash(printStorePath(info->path))); + hashSink = std::make_unique<HashModuloSink>(*info->narHash.type, storePathToHash(printStorePath(info->path))); dumpPath(Store::toRealPath(i), *hashSink); auto current = hashSink->finish(); |