From 1b3a78a4597c6c1d94fc51aa0520252aab21a2c8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 2 Jan 2013 12:00:26 +0100 Subject: [PATCH] Automatically fall back if the references of a substitute are not substitutable Fixes #77. --- src/libstore/build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/build.cc b/src/libstore/build.cc index c1cbf362a..b37193b85 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -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; }