From f34ec401bafca97110c6b8f44c168be4f924f90f Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Thu, 8 Sep 2011 22:48:38 +0000 Subject: [PATCH] fix for buildsteps starting at 0, probably something changed in catalyst --- src/script/hydra_build.pl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/hydra_build.pl.in b/src/script/hydra_build.pl.in index 2b43d562..35869bc3 100755 --- a/src/script/hydra_build.pl.in +++ b/src/script/hydra_build.pl.in @@ -244,7 +244,7 @@ sub doBuild { my $max = $build->buildsteps->find( {}, {select => {max => 'stepnr + 1'}, as => ['max']}); - my $buildStepNr = defined $max ? $max->get_column('max') : 1; + my $buildStepNr = (defined $max && defined $max->get_column('max')) ? $max->get_column('max') : 1; my %buildSteps;