Fix uninitialized perl variable error output
[buildfarm-client.git] / run_build.pl
index 2171231d95ae745851cbad97310fd7b779c4fb9f..1e0e621cedf3625f747fba75396798f9f96b4b4c 100755 (executable)
@@ -564,7 +564,7 @@ elsif (!$from_source)
 
     # If config file changed, force a rebuild
     ($current_config) = (stat $orig_dir.'/'.$buildconf)[9];
-    if ($current_config > $last_config)
+    if (defined $current_config && $current_config > $last_config)
     {
       $last_status = 0;
       set_last('config',$current_config) unless $nostatus;
@@ -767,9 +767,9 @@ sub check_optional_step
         &&grep {$_ eq $wday} @{$oconf->{dow}});
 
     my $last_step = $last_status = find_last("$step") || 0;
-
-    return undef unless ($forcerun ||
-                         time >$last_step + (3600 * $oconf->{min_hours_since}));
+    ## If made it *to* these optional steps, we just run them and reset last time
+    #return undef unless ($forcerun ||
+    #                     time >$last_step + (3600 * $oconf->{min_hours_since}));
     set_last("$step") unless $nostatus;
 
     return 1;