]> git.donarmstrong.com Git - bugscan.git/blobdiff - bugcounts
close <font> tags
[bugscan.git] / bugcounts
index 8336c9071f791b991dcf85a78c1fd917940a5e34..ac49f8c405e86748dbd36b03cbe9d03a0af8d752 100755 (executable)
--- 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));
 }