X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=blobdiff_plain;f=scanlib.pm;fp=scanlib.pm;h=4b828a3711c6229e86958c6ac21460e7a4995410;hp=19fda963bf83e8ccd5a0e184d9cca54211893ec9;hb=1d97221130ca457ad6aeccd8b7e381860a8db706;hpb=b6929df21306bcb09f3ac4592d116bcdc97f09b3 diff --git a/scanlib.pm b/scanlib.pm index 19fda96..4b828a3 100644 --- a/scanlib.pm +++ b/scanlib.pm @@ -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 {