Permalink
Browse files

Update isCurrent properly

  • Loading branch information...
1 parent 179b012 commit 1f268d2d43c0473955a7d692b504bc00e2c3c6db @edolstra edolstra committed Mar 13, 2012
Showing with 2 additions and 1 deletion.
  1. +0 −1 src/lib/Hydra/Helper/AddBuilds.pm
  2. +2 −0 src/script/hydra-evaluator
@@ -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});
}
});

0 comments on commit 1f268d2

Please sign in to comment.