]> git.donarmstrong.com Git - bugscan.git/blobdiff - bugcounts
More nvi cleanups.
[bugscan.git] / bugcounts
index cf8809630e0fc77fa3bb4a31ae34bf297a90a58f..b0337fc01d7f68a7c88f605e54cafc3de4f3d7f6 100755 (executable)
--- a/bugcounts
+++ b/bugcounts
@@ -53,7 +53,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,17 +64,11 @@ 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";
-               }       
+               $worrycount++ if (scanlib::check_worry($scanlib::bugs{$nr}));
        }
 
        if (defined($scanlib::comments{$p}) && $scanlib::comments{$p} =~ m/^\[REMOVE\]/) {
-               my @a = split(/ /,$scanlib::packagelist{$p});
-               $removecount += scalar(@a);
+               $removecount += scalar @{$scanlib::packagelist{$p}};
        }
 }