From 629ab8002218e9b526d947a9b7a2eccddc3f331c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 7 Oct 2016 18:13:40 +0200 Subject: importPaths(): Fix accessor support for Hydra --- src/libstore/binary-cache-store.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/libstore/binary-cache-store.cc') 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 BinaryCacheStore::getFSAccessor() std::dynamic_pointer_cast(shared_from_this()))); } +void BinaryCacheStore::addPathToAccessor(ref accessor, + const Path & storePath, const ref & data) +{ + auto accessor_ = accessor.dynamic_pointer_cast(); + if (accessor_) + accessor_->nars.emplace(storePath, makeNarAccessor(data)); +} + } -- cgit 1.4.1