Put back nicer copyClosure instead of manual closure + copy

It looks like we accidentally got the old code back, probably after a merge
conflict resolution.
This commit is contained in:
John Ericson 2023-12-04 17:41:11 -05:00
parent 8046ec2668
commit e3443cd22a

View file

@ -535,9 +535,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);