From 3939974df823bf4cf8fbb107c6ad5e820bcb31d4 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 10 May 2013 00:51:45 +0200 Subject: [PATCH] Set build status to 1 if the primary build failed --- src/script/hydra-build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script/hydra-build b/src/script/hydra-build index 3b9a3382..1086efa5 100755 --- a/src/script/hydra-build +++ b/src/script/hydra-build @@ -260,8 +260,8 @@ sub doBuild { $stopTime = time(); if ($res != 0) { - if ($thisBuildFailed && $res == 100 << 8) { $buildStatus = 1; } - elsif (!$thisBuildFailed && $someBuildFailed) { $buildStatus = 2; } + if ($thisBuildFailed) { $buildStatus = 1; } + elsif ($someBuildFailed) { $buildStatus = 2; } else { $buildStatus = 3; } }