aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/nar-info.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-06-10 11:48:38 +0200
committerGitHub <noreply@github.com>2020-06-10 11:48:38 +0200
commitb9ae1bdd7a1ed8eee25fc37c97d74c1d6771778d (patch)
tree94ff7c2cdb36c9c1180be86030616ef9c49aceab /src/libstore/nar-info.cc
parentf64cc6d9b18b7594b560b4a26e4268992bf54eee (diff)
parent6ee03b8444e1838b9985a9fd4f0f46947e958b3b (diff)
Merge pull request #3655 from zimbatm/hash-encoding-prepare
libutils/hash: remove default encoding
Diffstat (limited to 'src/libstore/nar-info.cc')
-rw-r--r--src/libstore/nar-info.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/nar-info.cc b/src/libstore/nar-info.cc
index 1375094b5..6b16be08a 100644
--- a/src/libstore/nar-info.cc
+++ b/src/libstore/nar-info.cc
@@ -87,10 +87,10 @@ std::string NarInfo::to_string(const Store & store) const
assert(compression != "");
res += "Compression: " + compression + "\n";
assert(fileHash.type == htSHA256);
- res += "FileHash: " + fileHash.to_string(Base32) + "\n";
+ res += "FileHash: " + fileHash.to_string(Base32, true) + "\n";
res += "FileSize: " + std::to_string(fileSize) + "\n";
assert(narHash.type == htSHA256);
- res += "NarHash: " + narHash.to_string(Base32) + "\n";
+ res += "NarHash: " + narHash.to_string(Base32, true) + "\n";
res += "NarSize: " + std::to_string(narSize) + "\n";
res += "References: " + concatStringsSep(" ", shortRefs()) + "\n";