1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

* Fix the `--fallback' switch.

* Fix the substitutes tests.
This commit is contained in:
Eelco Dolstra 2005-01-25 13:00:12 +00:00
parent 581fc47783
commit c6290e42bc
10 changed files with 35 additions and 87 deletions

View file

@ -472,6 +472,12 @@ void DerivationGoal::outputsSubstituted()
{
trace("all outputs substituted (maybe)");
if (nrFailed > 0 && !tryFallback) {
throw Error(format("some substitutes for the outputs of derivation `%1%' failed; try `--fallback'") % drvPath);
}
nrFailed = 0;
if (checkPathValidity(false).size() == 0) {
amDone(true);
return;