X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=blobdiff_plain;f=scanlib.pm;h=4b828a3711c6229e86958c6ac21460e7a4995410;hp=bb9d170e5d47b8357c5c93739b21afd664b8be5d;hb=c3906cb5915ca5fc9924508449bb29c0ff357692;hpb=64d8c09bb191cc7695acacdb848df6cf64e478e4 diff --git a/scanlib.pm b/scanlib.pm index bb9d170..4b828a3 100644 --- a/scanlib.pm +++ b/scanlib.pm @@ -54,7 +54,7 @@ sub readmaintainers() { sub glob_compressed_fh { my ($fn) = @_; $fn = (grep { -f $_ } glob $fn)[0]; - my $fh = IO::Uncopmress::AnyUncompress->new($fn) or + my $fh = IO::Uncompress::AnyUncompress->new($fn) or die "Unable to open $fn for reading: $!"; return $fh; } @@ -312,14 +312,14 @@ sub htmlsanit { return $in; } -sub wwwnumber() { +sub wwwnumber { my $number = shift; # Number of bug to html-ize "' . htmlsanit($number) . ''; } -sub wwwname() { +sub wwwname { my $name = shift; # Name of package "{'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 {