summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-17 15:55:30 -0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-17 15:55:30 -0400
commit3a9fdf2747bc7436fc3c1fd5f9accd5675d4295e (patch)
tree56cda585c457ff63838095a9519666985cdc60c5
parent1217204c81b0b6f02df99adfc8414a181299535c (diff)
downloadguix-3a9fdf2747bc7436fc3c1fd5f9accd5675d4295e.tar.gz
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.
-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 12940e268c..26268f6ddb 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;