When checking if build is already built, check for potential 'failed with result'. Fixes issue #7.

This commit is contained in:
Rob Vermaas 2012-04-30 19:47:21 +02:00
parent 854513be8e
commit 437e59c4a8

View file

@ -887,7 +887,7 @@ sub checkBuild {
%extraFlags = %extraFlags =
( finished => 1 ( finished => 1
, iscachedbuild => 1 , iscachedbuild => 1
, buildstatus => 0 , buildstatus => -f "$outPath/nix-support/failed" ? 6 : 0
, starttime => $time , starttime => $time
, stoptime => $time , stoptime => $time
, logfile => getBuildLog($drvPath) , logfile => getBuildLog($drvPath)