diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-25T13·00+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-25T13·00+0000 |
commit | c6290e42bc8890e2036013773a98e3551352c91a (patch) | |
tree | 898c4017359d92cd942be6890d298e0574dee1c1 /src/libstore/build.cc | |
parent | 581fc477838e9cf9e5d9657920ef63ea836050ee (diff) |
* Fix the `--fallback' switch.
* Fix the substitutes tests.
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r-- | src/libstore/build.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 1de50a14041c..026721f3b9d8 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -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; |