X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=blobdiff_plain;f=bugreport;h=49bcc929a05a1abbec2af76efb3de7ebbba058f6;hp=67ecf935bba69b5caa3aba2bdbe9c5d558e8c672;hb=906b485b9663e38cd761f656353251dc3a18f454;hpb=c0f4a4d5ce63338390dfd851c4b403769266d0d7 diff --git a/bugreport b/bugreport index 67ecf93..49bcc92 100755 --- a/bugreport +++ b/bugreport @@ -135,11 +135,15 @@ sub MakeStatistics() { my $worrytotal=0; # Total number of bugs we're actually worried about my $stabletotal=0; # Total number of bugs affecting stable my %list; # List of bugnumber associated with package + my %seen_bugs; # bugs which have already been counted for my $p (sort keys %scanlib::packagelist) { my $count = 0; # Number of bugs for this package for my $nr (@{$scanlib::packagelist{$p}}) { + # if we've already counted this bug, we don't want to count it again + next if $seen_bugs{$nr}; + $seen_bugs{$nr} = 1; $pendingtotal++ if ($scanlib::bugs{$nr}->{'pending'}); $patchtotal++ if ($scanlib::bugs{$nr}->{'patch'}); $ignoretotal++ if ($scanlib::bugs{$nr}->{'wheezy-ignore'} || $scanlib::bugs{$nr}->{'squeeze-ignore'});