aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-02-28 11:34:18 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-02-28 11:34:18 -0500
commitc36b584f8eb103afa152ef4304cf9fd5c3ebaaf0 (patch)
tree21ee40a711110d7ed657aed4c38c74973385ea3c
parent87ca46263dbf88eb8ee606078738bde348689bc6 (diff)
Fix typo in the method name
-rw-r--r--src/libstore/path-info.cc4
-rw-r--r--src/libstore/path-info.hh2
-rw-r--r--src/libstore/store-api.cc4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/libstore/path-info.cc b/src/libstore/path-info.cc
index ff85b3932..074b50818 100644
--- a/src/libstore/path-info.cc
+++ b/src/libstore/path-info.cc
@@ -21,7 +21,7 @@ void ValidPathInfo::sign(const Store & store, const SecretKey & secretKey)
sigs.insert(secretKey.signDetached(fingerprint(store)));
}
-std::optional<ContentAddressWithReferences> ValidPathInfo::contentAddressWithReferenences() const
+std::optional<ContentAddressWithReferences> ValidPathInfo::contentAddressWithReferences() const
{
if (! ca)
return std::nullopt;
@@ -54,7 +54,7 @@ std::optional<ContentAddressWithReferences> ValidPathInfo::contentAddressWithRef
bool ValidPathInfo::isContentAddressed(const Store & store) const
{
- auto fullCaOpt = contentAddressWithReferenences();
+ auto fullCaOpt = contentAddressWithReferences();
if (! fullCaOpt)
return false;
diff --git a/src/libstore/path-info.hh b/src/libstore/path-info.hh
index 35aced472..97eb6638b 100644
--- a/src/libstore/path-info.hh
+++ b/src/libstore/path-info.hh
@@ -78,7 +78,7 @@ struct ValidPathInfo
void sign(const Store & store, const SecretKey & secretKey);
- std::optional<ContentAddressWithReferences> contentAddressWithReferenences() const;
+ std::optional<ContentAddressWithReferences> contentAddressWithReferences() const;
/* Return true iff the path is verifiably content-addressed. */
bool isContentAddressed(const Store & store) const;
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index 06d746a0b..73dcaf150 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -996,7 +996,7 @@ void copyStorePath(
auto info2 = make_ref<ValidPathInfo>(*info);
info2->path = dstStore.makeFixedOutputPathFromCA(
info->path.name(),
- info->contentAddressWithReferenences().value());
+ info->contentAddressWithReferences().value());
if (dstStore.storeDir == srcStore.storeDir)
assert(info->path == info2->path);
info = info2;
@@ -1110,7 +1110,7 @@ std::map<StorePath, StorePath> copyPaths(
if (currentPathInfo.ca && currentPathInfo.references.empty()) {
storePathForDst = dstStore.makeFixedOutputPathFromCA(
currentPathInfo.path.name(),
- currentPathInfo.contentAddressWithReferenences().value());
+ currentPathInfo.contentAddressWithReferences().value());
if (dstStore.storeDir == srcStore.storeDir)
assert(storePathForDst == storePathForSrc);
if (storePathForDst != storePathForSrc)