aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/path-info.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-01-13 15:06:07 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-01-13 15:06:07 -0500
commit2e7be46e73293f729358eefc5b464dcb7e2d76bf (patch)
treefadac2f673bc44e3c771a9e34ec10c7f27730cf2 /src/libstore/path-info.cc
parent91617f80ec03ff4580a656310959ce2e31e0d177 (diff)
Move new `ValidPathInfo` methods to path-info.cc
We'll move the old ones separately, so as not to clutter the diff.
Diffstat (limited to 'src/libstore/path-info.cc')
-rw-r--r--src/libstore/path-info.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libstore/path-info.cc b/src/libstore/path-info.cc
index 003685604..cb3077c61 100644
--- a/src/libstore/path-info.cc
+++ b/src/libstore/path-info.cc
@@ -3,6 +3,21 @@
namespace nix {
+StorePathSet ValidPathInfo::referencesPossiblyToSelf() const
+{
+ return references.possiblyToSelf(path);
+}
+
+void ValidPathInfo::insertReferencePossiblyToSelf(StorePath && ref)
+{
+ return references.insertPossiblyToSelf(path, std::move(ref));
+}
+
+void ValidPathInfo::setReferencesPossiblyToSelf(StorePathSet && refs)
+{
+ return references.setPossiblyToSelf(path, std::move(refs));
+}
+
ValidPathInfo ValidPathInfo::read(Source & source, const Store & store, unsigned int format)
{
return read(source, store, format, store.parseStorePath(readString(source)));