about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-17T19·55-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-17T19·55-0400
commit3a9fdf2747bc7436fc3c1fd5f9accd5675d4295e (patch)
tree56cda585c457ff63838095a9519666985cdc60c5 /src
parent1217204c81b0b6f02df99adfc8414a181299535c (diff)
Return an exit code of 100 for cached failed builds
Exit code 100 should be returned for all permanent failures.  This
includes cached failures.

Fixes #34.
Diffstat (limited to 'src')
-rw-r--r--src/libstore/build.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 12940e268c74..26268f6ddb7d 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -2234,6 +2234,7 @@ bool DerivationGoal::pathFailed(const Path & path)
     if (printBuildTrace)
         printMsg(lvlError, format("@ build-failed %1% %2% cached") % drvPath % path);
     
+    worker.permanentFailure = true;
     amDone(ecFailed);
 
     return true;