forked from lix-project/lix
Don't create unnecessary substitution goals for derivations
This commit is contained in:
parent
215745415e
commit
9e3389c337
|
@ -924,6 +924,11 @@ void DerivationGoal::init()
|
|||
/* The first thing to do is to make sure that the derivation
|
||||
exists. If it doesn't, it may be created through a
|
||||
substitute. */
|
||||
if (buildMode == bmNormal && worker.store.isValidPath(drvPath)) {
|
||||
haveDerivation();
|
||||
return;
|
||||
}
|
||||
|
||||
addWaitee(worker.makeSubstitutionGoal(drvPath));
|
||||
|
||||
state = &DerivationGoal::haveDerivation;
|
||||
|
|
Loading…
Reference in a new issue