forked from lix-project/hydra
Merge pull request #1125 from obsidiansystems/simplify--copyClosure
Use `copyClosure` instead of `computeFSClosure` + `copyPaths`
This commit is contained in:
commit
3390415905
|
@ -287,9 +287,9 @@ void State::buildRemote(ref<Store> destStore,
|
||||||
this will copy the inputs to the binary cache from the local
|
this will copy the inputs to the binary cache from the local
|
||||||
store. */
|
store. */
|
||||||
if (localStore != std::shared_ptr<Store>(destStore)) {
|
if (localStore != std::shared_ptr<Store>(destStore)) {
|
||||||
StorePathSet closure;
|
copyClosure(*localStore, *destStore,
|
||||||
localStore->computeFSClosure(step->drv->inputSrcs, closure);
|
step->drv->inputSrcs,
|
||||||
copyPaths(*localStore, *destStore, closure, NoRepair, NoCheckSigs, NoSubstitute);
|
NoRepair, NoCheckSigs, NoSubstitute);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
@ -513,9 +513,9 @@ Step::ptr State::createStep(ref<Store> destStore,
|
||||||
// FIXME: should copy directly from substituter to destStore.
|
// FIXME: should copy directly from substituter to destStore.
|
||||||
}
|
}
|
||||||
|
|
||||||
StorePathSet closure;
|
copyClosure(*localStore, *destStore,
|
||||||
localStore->computeFSClosure({*path}, closure);
|
StorePathSet { *path },
|
||||||
copyPaths(*localStore, *destStore, closure, NoRepair, CheckSigs, NoSubstitute);
|
NoRepair, CheckSigs, NoSubstitute);
|
||||||
|
|
||||||
time_t stopTime = time(0);
|
time_t stopTime = time(0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue