From 437e59c4a881e7dc520c0e97523a0240f0f3a24e Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Mon, 30 Apr 2012 19:47:21 +0200 Subject: [PATCH] When checking if build is already built, check for potential 'failed with result'. Fixes issue #7. --- src/lib/Hydra/Helper/AddBuilds.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Helper/AddBuilds.pm b/src/lib/Hydra/Helper/AddBuilds.pm index feec1c98..c2effa77 100644 --- a/src/lib/Hydra/Helper/AddBuilds.pm +++ b/src/lib/Hydra/Helper/AddBuilds.pm @@ -887,7 +887,7 @@ sub checkBuild { %extraFlags = ( finished => 1 , iscachedbuild => 1 - , buildstatus => 0 + , buildstatus => -f "$outPath/nix-support/failed" ? 6 : 0 , starttime => $time , stoptime => $time , logfile => getBuildLog($drvPath)