*headdesk*

DBIC::Class helpfully doesn't warn you when you're matching against
unselected columns.  So this query actually returned all builds...
This commit is contained in:
Eelco Dolstra 2013-09-25 00:57:36 +02:00
parent 2d7e106d29
commit f037a318e3

View file

@ -50,7 +50,7 @@ sub failDependents {
my @dependentBuilds = $db->resultset('Builds')->search( my @dependentBuilds = $db->resultset('Builds')->search(
{ finished => 0, busy => 0 }, { finished => 0, busy => 0 },
{ columns => ["id", "project", "jobset", "job", "drvpath"] }); { columns => ["id", "project", "jobset", "job", "drvpath", "finished", "busy"] });
for my $d (@dependentBuilds) { for my $d (@dependentBuilds) {
next unless $dependentDrvs->has($d->drvpath); next unless $dependentDrvs->has($d->drvpath);