X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=blobdiff_plain;f=bugcounts;h=ac49f8c405e86748dbd36b03cbe9d03a0af8d752;hp=1a84994c803d2a8899a17db99e833af474131e70;hb=HEAD;hpb=02cc5bba35cc8b9c6ce76a2c1bc7b520187bcaa3 diff --git a/bugcounts b/bugcounts index 1a84994..ac49f8c 100755 --- a/bugcounts +++ b/bugcounts @@ -4,8 +4,10 @@ # Generate some counts for the bugreports use Getopt::Std; -require scanlib; -require bugcfg; +use File::Basename; +use lib dirname(__FILE__); +use bugcfg; +use scanlib; use strict; # use warnings; @@ -49,7 +51,8 @@ for my $bug (values %scanlib::bugs) { $total++; $pendingcount++ if ($bug->{'pending'}); $patchcount++ if ($bug->{'patch'}); - $ignorecount++ if ($bug->{'etch-ignore'} || $bug->{'lenny-ignore'}); + $ignorecount++ if ($bug->{$bugcfg::debian_releases->{stable}.'-ignore'} || + $bug->{$bugcfg::debian_releases->{testing}.'-ignore'}); $worrycount++ if (scanlib::check_worry($bug)); $stablecount++ if (scanlib::check_worry_stable($bug)); }