aboutsummaryrefslogtreecommitdiff
path: root/src/nix/verify.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-06-18 22:33:07 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-06-18 22:33:07 +0000
commit669c3992e883414269d850bba5f00c59a1b207d0 (patch)
tree3ab30069748da1ab1383632e3e17a58d605dc898 /src/nix/verify.cc
parent517f5980e2c63af47e7042873cc33b521918ad35 (diff)
parent15abb2aa2ba7de06a86e05511f81633616e17d87 (diff)
Merge branch 'no-hash-type-unknown' into validPathInfo-temp
Diffstat (limited to 'src/nix/verify.cc')
-rw-r--r--src/nix/verify.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/verify.cc b/src/nix/verify.cc
index ab83637dc..d1aba08e3 100644
--- a/src/nix/verify.cc
+++ b/src/nix/verify.cc
@@ -88,9 +88,9 @@ struct CmdVerify : StorePathsCommand
std::unique_ptr<AbstractHashSink> hashSink;
if (info->ca == "")
- 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, std::string(info->path.hashPart()));
+ hashSink = std::make_unique<HashModuloSink>(*info->narHash.type, std::string(info->path.hashPart()));
store->narFromPath(info->path, *hashSink);