diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-09-26 03:21:36 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-09-26 03:21:36 +0000 |
commit | 5db83dd771b92bcacb0cd4dea7d4e06f767769ca (patch) | |
tree | 8d66142756bd710132a9cdfba30ba4e994d2b084 /src | |
parent | c40c832f1953e59d5162543db9e46ddfc8c02525 (diff) |
BinaryCacheStore::addTextToStore include CA field
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/binary-cache-store.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstore/binary-cache-store.cc b/src/libstore/binary-cache-store.cc index f7a52a296..a3a73fe27 100644 --- a/src/libstore/binary-cache-store.cc +++ b/src/libstore/binary-cache-store.cc @@ -419,7 +419,8 @@ StorePath BinaryCacheStore::addToStore(const string & name, const Path & srcPath StorePath BinaryCacheStore::addTextToStore(const string & name, const string & s, const StorePathSet & references, RepairFlag repair) { - auto path = computeStorePathForText(name, s, references); + auto textHash = hashString(htSHA256, s); + auto path = makeTextPath(name, textHash, references); if (!repair && isValidPath(path)) return path; @@ -428,6 +429,7 @@ StorePath BinaryCacheStore::addTextToStore(const string & name, const string & s return addToStoreCommon(source, repair, CheckSigs, [&](HashResult nar) { ValidPathInfo info { path, nar.first }; info.narSize = nar.second; + info.ca = TextHash { textHash }; info.references = references; return info; })->path; |