Different icons (darker red) for cancelled builds. Fixes #25.

This commit is contained in:
Rob Vermaas
2012-05-25 04:14:36 +02:00
parent d1da9a8823
commit 75277311ac
6 changed files with 12 additions and 9 deletions

View File

@ -353,7 +353,7 @@ sub getEvals {
# Compute what inputs changed between each eval.
my $curInputs = [ $cur->jobsetevalinputs->search(
{ uri => { '!=' => undef }, revision => { '!=' => undef }, altNr => 0 },
{ -or => [ -and => [ uri => { '!=' => undef }, revision => { '!=' => undef }], dependency => { '!=' => undef }], altNr => 0 },
{ order_by => "name" }) ];
my @changedInputs;
my %prevInputsHash;
@ -361,7 +361,8 @@ sub getEvals {
foreach my $input (@{$curInputs}) {
my $p = $prevInputsHash{$input->name};
push @changedInputs, $input
if !defined $p || $input->revision ne $p->revision || $input->type ne $p->type || $input->uri ne $p->uri;
if !defined $p || $input->revision ne $p->revision || $input->type ne $p->type || $input->uri ne $p->uri ||
( defined $input->dependency && defined $p->dependency && $input->dependency->id ne $p->dependency->id);
}
$prevInputs = $curInputs;