]> git.donarmstrong.com Git - bugscan.git/blobdiff - bugcounts
Kill the comments stuff; it hasn't been used for ages.
[bugscan.git] / bugcounts
index 6d93fa8b21193707997095a5d39bd126a659a92c..1920a5b617b2a5905335c1e3f199dc542ffe6bdc 100755 (executable)
--- a/bugcounts
+++ b/bugcounts
@@ -31,7 +31,7 @@ EOF
        exit 0;
 }
 
-my ($opt_h,$opt_V,$opt_S,$opt_C);
+our ($opt_h,$opt_V,$opt_S,$opt_C);
 
 getopts('VhS:C:');
 ShowUsage if ($opt_h);
@@ -43,7 +43,6 @@ scanlib::readstatus($statusfile);
 scanlib::readcomments($commentsfile);
 
 my $total=0;           # total number of bugs
-my $removecount=0;     # Number of bugs that will disappear if packages are removed
 my $patchcount=0;      # Number of bugs that have a fix proposed
 my $pendingcount=0;    # Number of bugs that will have a fix uploaded RSN
 my $ignorecount=0;      # Number of bugs being ignored
@@ -53,7 +52,7 @@ my %sectcount=();     # Bugs per type
 
 for my $p (keys %scanlib::packagelist) {
        next if (defined $bugcfg::exclude{$p});
-       for my $nr (sort split(/ /, $scanlib::packagelist{$p})) {
+       for my $nr (sort @{$scanlib::packagelist{$p}}) {
                next if (defined $bugcfg::exclude{$nr});
                $total++;
                $pendingcount++ if ($scanlib::bugs{$nr} =~ m/^\[[^]]*P/);
@@ -64,18 +63,8 @@ for my $p (keys %scanlib::packagelist) {
                        my $sect = ($scanlib::comments{$nr} =~ m/\[([^]]*)\]/);
                        $sectcount{$sect}++;
                }
-               unless ($scanlib::bugs{$nr} =~ m/^\[[^]]*I/ or
-                       $scanlib::bugs{$nr} =~ m/ \[[^]]*X/ or
-                       ($scanlib::bugs{$nr} =~ m/ \[[^]]*[OSUE]/ and $scanlib::bugs{$nr} !~ m/ \[[^]]*T/)) {
-                       $worrycount++;
-                       # print STDERR "$nr $bugs{$nr}\n";
-               }       
-       }
-
-       if (defined($scanlib::comments{$p}) && $scanlib::comments{$p} =~ m/^\[REMOVE\]/) {
-               my @a = split(/ /,$scanlib::packagelist{$p});
-               $removecount += scalar(@a);
+               $worrycount++ if (scanlib::check_worry($scanlib::bugs{$nr}));
        }
 }
 
-printf("%d %d %d %d %d %d %d\n", $total, $pendingcount, $patchcount, $removecount, $ignorecount, $nottestingcount, $worrycount);
+printf("%d %d %d 0 %d %d %d\n", $total, $pendingcount, $patchcount, $ignorecount, $nottestingcount, $worrycount);