]> git.donarmstrong.com Git - bugscan.git/blobdiff - make-britney-counts
use lib dirname(__FILE__) for everything
[bugscan.git] / make-britney-counts
index a603b801d6cd0ce306712c8d99d91f22797cbf1b..955dc9370443c8770f6daa9e7bf8fbeb53fd3fb0 100755 (executable)
@@ -4,8 +4,10 @@
 # Generate a report britney can use
 
 use Getopt::Std;
-require scanlib;
-require bugcfg;
+use File::Basename;
+use lib dirname(__FILE__);
+use bugcfg;
+use scanlib;
 use strict;
 # use warnings;
 
@@ -48,7 +50,7 @@ while (my ($nr, $bug) = each %scanlib::bugs) {
 
                # this hack is specific to britney counts, and ignores
                # bugs tagged ignore for the next testing release
-               if (scanlib::check_worry_unstable($bug) and not $bug->{'squeeze-ignore'}) {
+               if (scanlib::check_worry_unstable($bug) and not $bug->{$bugcfg::debian_releases->{testing}.'-ignore'}) {
                        push @{$unstablebugs{$package}}, $nr;
                }
                if (scanlib::check_worry($bug)) {