-$commentsfile=$opt_C if ($opt_C);
-
-&readstatus($statusfile);
-&readcomments($commentsfile);
-
-$total=0; # total number of bugs
-$removecount=0; # Number of bugs that will disappear if packages are removed
-$patchcount=0; # Number of bugs that have a fix proposed
-$pendingcount=0; # Number of bugs that will have a fix uploaded RSN
-$ignorecount=0; # Number of bugs being ignored
-$nottestingcount=0; # Number of bugs on packages not in testing
-$worrycount=0; # Number of bugs we're actually worried about
-%sectcount=(); # Bugs per type
-
-for $p (keys %packagelist) {
- next if (defined $exclude{$p});
- for $nr (sort split(/ /, $packagelist{$p})) {
- next if (defined $exclude{$nr});
- $total++;
- $pendingcount++ if ($bugs{$nr} =~ m/^\[[^]]*P/);
- $patchcount++ if ($bugs{$nr} =~ m/^\[[^]]*\+/);
- $ignorecount++ if ($bugs{$nr} =~ m/^\[[^]]*I/);
- $nottestingcount++ if ($bugs{$nr} =~ m/ \[[^]]*X/);
- if (defined $comments{$nr}) {
- ($sect) = ($comments{$nr} =~ m/\[([^]]*)\]/);
- $sectcount{$sect}++;
- }
- unless ($bugs{$nr} =~ m/^\[[^]]*I/ or
- $bugs{$nr} =~ m/ \[[^]]*X/ or
- ($bugs{$nr} =~ m/ \[[^]]*[OSUE]/ and $bugs{$nr} !~ m/ \[[^]]*T/)) {
- $worrycount++;
- # print STDERR "$nr $bugs{$nr}\n";
- }
- }