Revert "Use copyClosure instead of computeFSClosure + copyPaths"

This reverts commit f14c583ce5.
This commit is contained in:
Cole Helbling 2022-03-28 09:26:28 -07:00 committed by Cole Helbling
parent 962bf36939
commit 8e3ada2afc
2 changed files with 6 additions and 6 deletions

View file

@ -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)) {
copyClosure(*localStore, *destStore, StorePathSet closure;
step->drv->inputSrcs, localStore->computeFSClosure(step->drv->inputSrcs, closure);
NoRepair, NoCheckSigs, NoSubstitute); copyPaths(*localStore, *destStore, closure, NoRepair, NoCheckSigs, NoSubstitute);
} }
{ {

View file

@ -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.
} }
copyClosure(*localStore, *destStore, StorePathSet closure;
StorePathSet { *path }, localStore->computeFSClosure({*path}, closure);
NoRepair, CheckSigs, NoSubstitute); copyPaths(*localStore, *destStore, closure, NoRepair, CheckSigs, NoSubstitute);
time_t stopTime = time(0); time_t stopTime = time(0);