From c6290e42bc8890e2036013773a98e3551352c91a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 25 Jan 2005 13:00:12 +0000 Subject: * Fix the `--fallback' switch. * Fix the substitutes tests. --- src/libstore/build.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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; -- cgit 1.4.1