Author: rob
Date: Thu Sep  8 22:48:38 2011
New Revision: 29117
URL: https://svn.nixos.org/websvn/nix/?rev=29117&sc=1

Log:
fix for buildsteps starting at 0, probably something changed in catalyst

Modified:
   hydra/trunk/src/script/hydra_build.pl.in

Modified: hydra/trunk/src/script/hydra_build.pl.in
==============================================================================
--- hydra/trunk/src/script/hydra_build.pl.in    Thu Sep  8 21:48:10 2011        
(r29116)
+++ hydra/trunk/src/script/hydra_build.pl.in    Thu Sep  8 22:48:38 2011        
(r29117)
@@ -244,7 +244,7 @@
 
         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;
         
_______________________________________________
nix-commits mailing list
nix-comm...@cs.uu.nl
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to