about summary refs log tree commit diff
path: root/src/libstore/export-import.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-10-07T16·13+0200
committerEelco Dolstra <edolstra@gmail.com>2016-10-07T16·13+0200
commit629ab8002218e9b526d947a9b7a2eccddc3f331c (patch)
tree1c7afac50fcad1019c9b45b97e421d6a3d121823 /src/libstore/export-import.cc
parentb0f7f9c98f2b54e34e9344f817d30363533d108f (diff)
importPaths(): Fix accessor support for Hydra
Diffstat (limited to 'src/libstore/export-import.cc')
-rw-r--r--src/libstore/export-import.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/libstore/export-import.cc b/src/libstore/export-import.cc
index 6090ee3e9f83..b7f43acf1dc2 100644
--- a/src/libstore/export-import.cc
+++ b/src/libstore/export-import.cc
@@ -119,13 +119,8 @@ Paths Store::importPaths(Source & source, std::shared_ptr<FSAccessor> accessor,
 
         addToStore(info, *tee.data, false, dontCheckSigs);
 
-        // FIXME: implement accessors?
-        assert(!accessor);
-#if 0
-        auto accessor_ = std::dynamic_pointer_cast<BinaryCacheStoreAccessor>(accessor);
-        if (accessor_)
-            accessor_->nars.emplace(info.path, makeNarAccessor(tee.data));
-#endif
+        if (accessor)
+            addPathToAccessor(ref<FSAccessor>(accessor), info.path, tee.data);
 
         res.push_back(info.path);
     }