--- mdap-server.pl 2007/12/04 22:05:21 83 +++ mdap-server.pl 2007/12/05 23:13:56 86 @@ -264,24 +264,24 @@ } } - if ( $plugins ) { - foreach my $plugin ( MDAP->plugins ) { - warn "## calling $plugin\n" if $debug; - if ( my $command = $plugin->check( $h ) ) { + } else { + once "!! NO FIRMWARE for $board in $tftp_path for ant $ant, skipping update"; + } + + if ( $plugins ) { + foreach my $plugin ( MDAP->plugins ) { + warn "## calling $plugin\n" if $debug; + if ( my $command = $plugin->check( $h ) ) { - warn ">> $plugin $ant $board ", - $h->{'ANT-NAME'}, " ", - $h->{'_BUILD'}, " ", - "\t:$command\n"; - - mdap_send("EXEC-CLI MDAP/$mdap_ver\r\nCLI-CMD:$command\r\nSEQ-NR:1\r\nTO-ANT:$ant\r\nUSER-ID:$user_id\r\nUSER-PWD:$user_pwd\r\n"); - last; - } + warn ">> $plugin $ant $board ", + $h->{'ANT-NAME'}, " ", + $h->{'_BUILD'}, " ", + "\t:$command\n"; + + mdap_send("EXEC-CLI MDAP/$mdap_ver\r\nCLI-CMD:$command\r\nSEQ-NR:1\r\nTO-ANT:$ant\r\nUSER-ID:$user_id\r\nUSER-PWD:$user_pwd\r\n"); + last; } } - - } else { - once "!! NO FIRMWARE for $board in $tftp_path for ant $ant, skipping update"; } } elsif ( $type eq 'REPLY-EXEC-CLI' ) {