Change the format of the status file to be something much closer to the
[bugscan.git] / bugcounts
index de473a1..038769b 100755 (executable)
--- a/bugcounts
+++ b/bugcounts
@@ -50,9 +50,9 @@ for my $p (keys %scanlib::packagelist) {
        for my $nr (sort @{$scanlib::packagelist{$p}}) {
                next if (defined $bugcfg::exclude{$nr});
                $total++;
-               $pendingcount++ if ($scanlib::bugs{$nr} =~ m/^\[[^]]*P/);
-               $patchcount++ if ($scanlib::bugs{$nr} =~ m/^\[[^]]*\+/);
-               $ignorecount++ if ($scanlib::bugs{$nr} =~ m/^\[[^]]*I/);
+               $pendingcount++ if ($scanlib::bugs{$nr}->{'pending'});
+               $patchcount++ if ($scanlib::bugs{$nr}->{'patch'});
+               $ignorecount++ if ($scanlib::bugs{$nr}->{'etch-ignore'});
                $worrycount++ if (scanlib::check_worry($scanlib::bugs{$nr}));
                $stablecount++ if (scanlib::check_worry_stable($scanlib::bugs{$nr}));
        }