forked from lix-project/hydra
* Doh.
This commit is contained in:
parent
54a122b49c
commit
18f25a1226
|
@ -55,8 +55,8 @@ sub doBuild {
|
||||||
# !!! should disregard fixed-output derivations (?)
|
# !!! should disregard fixed-output derivations (?)
|
||||||
if (!isValidPath($dep)) {
|
if (!isValidPath($dep)) {
|
||||||
my ($step) = $db->resultset('BuildSteps')->search(
|
my ($step) = $db->resultset('BuildSteps')->search(
|
||||||
{outPath => $dep}, {rows => 1, order_by => "stopTime DESC"});
|
{outPath => $dep}, {rows => 1, order_by => "stopTime DESC", busy => 0});
|
||||||
if (defined $step && $step->status != 0) {
|
if ($step && $step->status != 0) {
|
||||||
$buildStatus = 5;
|
$buildStatus = 5;
|
||||||
$failedDepBuild = $step->id->id;
|
$failedDepBuild = $step->id->id;
|
||||||
$failedDepStepNr = $step->stepnr;
|
$failedDepStepNr = $step->stepnr;
|
||||||
|
@ -110,7 +110,7 @@ sub doBuild {
|
||||||
(my $step) = $db->resultset('BuildSteps')->search(
|
(my $step) = $db->resultset('BuildSteps')->search(
|
||||||
{id => $build->id, type => 0, drvpath => $drvPath}, {});
|
{id => $build->id, type => 0, drvpath => $drvPath}, {});
|
||||||
die unless $step;
|
die unless $step;
|
||||||
$step->update({busy => 0, status => 0, time => 0});
|
$step->update({busy => 0, status => 0, stoptime => time});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue