diff options
Diffstat (limited to 'src/libstore/binary-cache-store.cc')
-rw-r--r-- | src/libstore/binary-cache-store.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstore/binary-cache-store.cc b/src/libstore/binary-cache-store.cc index 0ffbd6e552b7..01d1a7e246d9 100644 --- a/src/libstore/binary-cache-store.cc +++ b/src/libstore/binary-cache-store.cc @@ -318,4 +318,12 @@ ref<FSAccessor> BinaryCacheStore::getFSAccessor() std::dynamic_pointer_cast<BinaryCacheStore>(shared_from_this()))); } +void BinaryCacheStore::addPathToAccessor(ref<FSAccessor> accessor, + const Path & storePath, const ref<std::string> & data) +{ + auto accessor_ = accessor.dynamic_pointer_cast<BinaryCacheStoreAccessor>(); + if (accessor_) + accessor_->nars.emplace(storePath, makeNarAccessor(data)); +} + } |