-for my $p (keys %scanlib::packagelist) {
- next if (defined $bugcfg::exclude{$p});
- 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/);
- $worrycount++ if (scanlib::check_worry($scanlib::bugs{$nr}));
- $stablecount++ if (scanlib::check_worry_stable($scanlib::bugs{$nr}));
- }
+for my $bug (values %scanlib::bugs) {
+ $total++;
+ $pendingcount++ if ($bug->{'pending'});
+ $patchcount++ if ($bug->{'patch'});
+ $ignorecount++ if ($bug->{'lenny-ignore'} || $bug->{'squeeze-ignore'});
+ $worrycount++ if (scanlib::check_worry($bug));
+ $stablecount++ if (scanlib::check_worry_stable($bug));