- print "</span>" if ($fontset);
- if ($header) {
- &PrintPackageFooter($p);
- }
- }
-}
-
-
-sub MakeStatistics() {
- local($bugcount); # Total number of bugs so far
- local($count); # Number of bugs for this package
- local($remtotal); # Total number of bugs for packages marked REMOVE
- local($patchtotal); # Total number of bugs marked patch
- local($pendingtotal); # Total number of bugs marked pending
- local($ignoretotal); # Total number of bugs marked ignore
- local($nottestingtotal); # Total number of bugs on packages not in testing
- local($worrytotal); # Total number of bugs we're actually worried about
- local($p); # Index variable
- local(%list); # List of bugnumber associated with package
-
- $bugcount=0;
- for $p (sort keys %packagelist) {
- next if (defined $exclude{$p});
- $count=0;
- for $nr (split(/ /, $packagelist{$p})) {
- $pendingtotal++ if ($bugs{$nr} =~ m/^\[[^]]*P/);
- $patchtotal++ if ($bugs{$nr} =~ m/^\[[^]]*\+/);
- $ignoretotal++ if ($bugs{$nr} =~ m/^\[[^]]*I/);
- $nottestingtotal++ if ($bugs{$nr} =~ m/ \[[^]]*X/);
- $worrytotal++ unless (
- $bugs{$nr} =~ m/^\[[^]]*I/ or
- $bugs{$nr} =~ m/ \[[^]]*X/ or
- ($bugs{$nr} =~ m/ \[[^]]*[OSUE]/ and $bugs{$nr} !~ m/ \[[^]]*T/));
-
- if (not defined($exclude{$nr})) {
- $bugcount++;
- $count++;
- }
- }
- $remtotal+=$count if (defined($comments{$p}) && $comments{$p} =~ m/^\[REMOVE\]/);
- }
-
- if ($html) {
- print "<strong>Total number of release-critical bugs:</strong> $bugcount<BR>\n";
- printf("<strong>Number that will disappear after removing packages marked [REMOVE]:</strong> %d<BR>\n", $remtotal);
- printf("<strong>Number that have a patch:</strong> %d<BR>\n", $patchtotal);
- printf("<strong>Number that have a fix prepared and waiting to upload:</strong> %d<BR>\n", $pendingtotal);
- printf("<strong>Number that are being ignored:</strong> %d<BR>\n", $ignoretotal);
- printf("<strong>Number on packages not in testing:</strong> %d<BR>\n", $nottestingtotal);
- printf("<strong>Number concerning the next release (excluding ignored and not-in-testing):</strong> %d<P>\n", $worrytotal);
- } else {
- print "Total number of release-critical bugs: $bugcount\n";
- printf("Number that will disappear after removing packages marked [REMOVE]: %d\n", $remtotal);
- printf("Number that have a patch: %d\n", $patchtotal);
- printf("Number that have a fix prepared and waiting to upload: %d\n", $pendingtotal);
- printf("Number that are being ignored: %d\n", $ignoretotal);
- printf("Number on packages not in testing: %d\n", $nottestingtotal);
- printf("Number concerning the next release (excluding ignored and not-in-testing): %d\n", $worrytotal);
- }
-}
-
-
-sub FilterPackages() {
- local($filter) = shift; # Distribution we want to keep
-
- for $p (sort keys %packagelist) {
- delete $packagelist{$p} unless ($section{$p} =~ m/^$filter/);
- }
-}
-
-getopts('VhHlsd:S:C:');
-ShowUsage if ($opt_h);
-ShowVersion if ($opt_V);
-$statusfile=$opt_S if ($opt_S);
-$commentsfile=$opt_C if ($opt_C);
-$html=1 if ($opt_H);
-
-&readstatus($statusfile);
-&readcomments($commentsfile);
-&readNMUstatus($NMUfile);
-
-&FilterPackages($opt_d) if ($opt_d);
-
-MakeStatistics if ($opt_s);
-if ($opt_l) {
- MakeBuglist
-}
-
-exit 0;
-