Don't create a propagated build step to the same build

This commit is contained in:
Eelco Dolstra 2015-06-19 15:33:37 +02:00
parent 7afc61691b
commit f196967c43

View file

@ -1253,7 +1253,7 @@ bool State::doBuildStep(std::shared_ptr<StoreAPI> store, Step::ptr step,
build2->finishedInDB)
continue;
createBuildStep(txn, 0, build2, step, machine->sshName,
buildStepStatus, result.errorMsg, build->id);
buildStepStatus, result.errorMsg, build == build2 ? 0 : build->id);
}
if (!cachedFailure)