forked from lix-project/hydra
Update isCurrent properly
This commit is contained in:
parent
179b012a8e
commit
1f268d2d43
|
@ -877,7 +877,6 @@ sub checkBuild {
|
||||||
, drvpath => $drvPath
|
, drvpath => $drvPath
|
||||||
, outpath => $outPath
|
, outpath => $outPath
|
||||||
, system => $buildInfo->{system}
|
, system => $buildInfo->{system}
|
||||||
, iscurrent => 1
|
|
||||||
, nixexprinput => $jobset->nixexprinput
|
, nixexprinput => $jobset->nixexprinput
|
||||||
, nixexprpath => $jobset->nixexprpath
|
, nixexprpath => $jobset->nixexprpath
|
||||||
, priority => $priority
|
, priority => $priority
|
||||||
|
|
|
@ -169,8 +169,10 @@ sub checkJobset {
|
||||||
$ev->jobsetevalmembers->create({ build => $id, isnew => $new });
|
$ev->jobsetevalmembers->create({ build => $id, isnew => $new });
|
||||||
}
|
}
|
||||||
print STDERR " created new eval ", $ev->id, "\n";
|
print STDERR " created new eval ", $ev->id, "\n";
|
||||||
|
$ev->builds->update({iscurrent => 1});
|
||||||
} else {
|
} else {
|
||||||
print STDERR " created cached eval ", $ev->id, "\n";
|
print STDERR " created cached eval ", $ev->id, "\n";
|
||||||
|
$prevEval->builds->update({iscurrent => 1});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue