# 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;
$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));
}