Automatically fall back if the references of a substitute are not substitutable

Fixes #77.
This commit is contained in:
Eelco Dolstra 2013-01-02 12:00:26 +01:00
parent 82248abd8f
commit 1b3a78a459

View file

@ -2639,7 +2639,7 @@ void SubstitutionGoal::referencesValid()
if (nrFailed > 0) {
debug(format("some references of path `%1%' could not be realised") % storePath);
amDone(ecFailed);
amDone(nrNoSubstituters > 0 ? ecNoSubstituters : ecFailed);
return;
}