aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-01-02 12:00:26 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-01-02 12:00:26 +0100
commit1b3a78a4597c6c1d94fc51aa0520252aab21a2c8 (patch)
tree1ac15766a23659cd90e71775458f21174f616252 /src/libstore
parent82248abd8f2967f72b965c0ba7774815068c4962 (diff)
Automatically fall back if the references of a substitute are not substitutable
Fixes #77.
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/build.cc2
1 files changed, 1 insertions, 1 deletions
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;
}