diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-16 11:49:12 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-16 11:49:12 +0100 |
commit | 5ac27053e9bc4722dde5bd3243488d8e9a0b4623 (patch) | |
tree | 383aa0f6b98ebc3d214f48f2fc4632ea54d510e7 /src/libstore/store-api.cc | |
parent | 92063851b1c49a5c96cf86b0b61d840dfe155964 (diff) |
Rename ValidPathInfo::hash -> narHash for consistency
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r-- | src/libstore/store-api.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index 54b6c2b5c..82872cc33 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -245,7 +245,7 @@ string Store::makeValidityRegistration(const PathSet & paths, ValidPathInfo info = queryPathInfo(i); if (showHash) { - s += printHash(info.hash) + "\n"; + s += printHash(info.narHash) + "\n"; s += (format("%1%\n") % info.narSize).str(); } @@ -270,7 +270,7 @@ ValidPathInfo decodeValidPathInfo(std::istream & str, bool hashGiven) if (hashGiven) { string s; getline(str, s); - info.hash = parseHash(htSHA256, s); + info.narHash = parseHash(htSHA256, s); getline(str, s); if (!string2Int(s, info.narSize)) throw Error("number expected"); } |