From: Don Armstrong Date: Sat, 7 Dec 2013 22:26:22 +0000 (-0800) Subject: it's bugcfg not bug_cfg X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=commitdiff_plain;h=869d53dd359f46ca15f99fca7f76c8af164f0ff9;hp=882c3a5e8e8d32eb965a7d1f805f8ea31668b91c it's bugcfg not bug_cfg --- diff --git a/scanlib.pm b/scanlib.pm index 4c6b09b..7cbfcec 100644 --- a/scanlib.pm +++ b/scanlib.pm @@ -183,8 +183,8 @@ sub scanspooldir { next if $skip==1; my %disttags = (); - for (qw(oldstable stable testing unstable)) { - $disttags{$_} = grep(/^$bug_cfg::debian_releases->{$_}$/, @tags); + for my $release (qw(oldstable stable testing unstable)) { + $disttags{$release} = grep(/^$bugcfg::debian_releases->{$release}$/, @tags); } $disttags{'experimental'} = grep(/^experimental$/, @tags); @@ -234,7 +234,7 @@ sub scanspooldir { } for my $keyword (qw(pending patch help moreinfo unreproducible security upstream), - map {$_.$bug_cfg::debian_releases->{testing}.'-ignore'} keys %{$bug_cfg::debian_releases}) { + map {$_.$bugcfg::debian_releases->{testing}.'-ignore'} keys %{$bugcfg::debian_releases}) { $bi->{$keyword} = grep(/^$keyword$/, @tags); } @@ -326,13 +326,13 @@ sub wwwname() { sub check_worry { my ($bi) = @_; - return ($bi->{'testing'} && !$bi->{$bug_cfg::debian_releases->{testing}.'-ignore'}); + return ($bi->{'testing'} && !$bi->{$bugcfg::debian_releases->{testing}.'-ignore'}); } sub check_worry_stable { my ($bi) = @_; - return ($bi->{'stable'} && !$bi->{$bug_cfg::debian_releases->{stable}.'-ignore'}); + return ($bi->{'stable'} && !$bi->{$bugcfg::debian_releases->{stable}.'-ignore'}); } sub check_worry_unstable { @@ -352,7 +352,7 @@ sub get_taginfo { $taginfo .= $bi->{'unreproducible'} ? "R" : " "; $taginfo .= $bi->{'security'} ? "S" : " "; $taginfo .= $bi->{'upstream'} ? "U" : " "; - $taginfo .= ($bi->{$bug_cfg::debian_releases->{stable}.'-ignore'} || $bi->{$bug_cfg::debian_releases->{testing}.'-ignore'}) ? "I" : " "; + $taginfo .= ($bi->{$bugcfg::debian_releases->{stable}.'-ignore'} || $bi->{$bugcfg::debian_releases->{testing}.'-ignore'}) ? "I" : " "; return $taginfo; }