]> git.donarmstrong.com Git - bugscan.git/blobdiff - scanlib.pm
check oldstable bug totals
[bugscan.git] / scanlib.pm
index 19fda963bf83e8ccd5a0e184d9cca54211893ec9..4b828a3711c6229e86958c6ac21460e7a4995410 100644 (file)
@@ -327,15 +327,20 @@ sub wwwname {
 }
 
 sub check_worry {
-       my ($bi) = @_;
+       my ($bi,$dist) = @_;
+    $dist = 'testing' if not defined $dist;
 
-       return ($bi->{'testing'} && !$bi->{$bugcfg::debian_releases->{testing}.'-ignore'});
+       return ($bi->{$dist} && !$bi->{$bugcfg::debian_releases->{$dist}.'-ignore'});
 }
 
+sub check_worry_testing {
+    return check_worry($_[0],'testing');
+}
 sub check_worry_stable {
-       my ($bi) = @_;
-
-       return ($bi->{'stable'} && !$bi->{$bugcfg::debian_releases->{stable}.'-ignore'});
+    return check_worry($_[0],'stable');
+}
+sub check_worry_oldstable {
+    return check_worry($_[0],'oldstable');
 }
 
 sub check_worry_unstable {