X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=blobdiff_plain;f=bugcounts;h=ac49f8c405e86748dbd36b03cbe9d03a0af8d752;hp=8336c9071f791b991dcf85a78c1fd917940a5e34;hb=c3906cb5915ca5fc9924508449bb29c0ff357692;hpb=a00f1a19cc83ae763213278b462bace11f29a7b1 diff --git a/bugcounts b/bugcounts index 8336c90..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->{'wheezy-ignore'} || $bug->{'squeeze-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)); }