Cleanup of progress messages

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-07-24 09:13:46 -07:00
parent f2c9647579
commit ac5a6f4471

View File

@ -1402,7 +1402,7 @@ sub copy_rules( $$;$ ) {
push @$rules2, @rules1;
progress_message " $count rules from $chain1->{name} appended to $chain2->{name}";
progress_message " $count rules from $chain1->{name} appended to $chain2->{name}" if $count;
unless ( --$chain1->{references}{$name2} ) {
delete $chain1->{references}{$name2};
@ -2489,7 +2489,7 @@ sub optimize_level4( $$ ) {
# If the chain isn't branched to, then delete it
#
unless ( $chainref->{dont_delete} || keys %{$chainref->{references}} ) {
delete_chain $chainref;
delete_chain $chainref if $chainref->{referenced};
next;
}
@ -2638,6 +2638,7 @@ sub optimize_level8( $$$ ) {
next unless @{$chainref1->{rules}};
next if $chainref1->{dont_delete};
if ( $chainref->{digest} eq $chainref1->{digest} ) {
progress_message " Chain $chainref1->{name} combined with $chainref->{name}";
replace_references $chainref1, $chainref->{name}, undef;
$renamed{ $chainref->{name} } = 1 unless $chainref->{name} =~ /^~/;
}