mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
importPaths(): Fix accessor support for Hydra
This commit is contained in:
parent
b0f7f9c98f
commit
629ab80022
4 changed files with 27 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue