Update isCurrent properly

This commit is contained in:
Eelco Dolstra 2012-03-13 13:09:10 +01:00
parent 179b012a8e
commit 1f268d2d43
2 changed files with 2 additions and 1 deletions

View file

@ -877,7 +877,6 @@ sub checkBuild {
, drvpath => $drvPath
, outpath => $outPath
, system => $buildInfo->{system}
, iscurrent => 1
, nixexprinput => $jobset->nixexprinput
, nixexprpath => $jobset->nixexprpath
, priority => $priority

View file

@ -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});
}
});