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