forked from lix-project/hydra
Merge pull request #1317 from obsidiansystems/substitute-flag
`copyClosureTo`: Use `SubstituteFlag` instead of `bool`
This commit is contained in:
commit
58707438ba
|
@ -113,7 +113,7 @@ static void copyClosureTo(
|
||||||
Machine::Connection & conn,
|
Machine::Connection & conn,
|
||||||
Store & destStore,
|
Store & destStore,
|
||||||
const StorePathSet & paths,
|
const StorePathSet & paths,
|
||||||
bool useSubstitutes = false)
|
SubstituteFlag useSubstitutes = NoSubstitute)
|
||||||
{
|
{
|
||||||
StorePathSet closure;
|
StorePathSet closure;
|
||||||
destStore.computeFSClosure(paths, closure);
|
destStore.computeFSClosure(paths, closure);
|
||||||
|
@ -266,7 +266,7 @@ static BasicDerivation sendInputs(
|
||||||
destStore.computeFSClosure(basicDrv.inputSrcs, closure);
|
destStore.computeFSClosure(basicDrv.inputSrcs, closure);
|
||||||
copyPaths(destStore, localStore, closure, NoRepair, NoCheckSigs, NoSubstitute);
|
copyPaths(destStore, localStore, closure, NoRepair, NoCheckSigs, NoSubstitute);
|
||||||
} else {
|
} else {
|
||||||
copyClosureTo(conn, destStore, basicDrv.inputSrcs, true);
|
copyClosureTo(conn, destStore, basicDrv.inputSrcs, Substitute);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto now2 = std::chrono::steady_clock::now();
|
auto now2 = std::chrono::steady_clock::now();
|
||||||
|
|
Loading…
Reference in a new issue