X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=blobdiff_plain;f=scanlib.pm;h=65b3d7a6d3211290af4f8c4d318672f946f5f772;hp=50a695102301cc91917d04101824ad94083b1645;hb=66181ccca49c7fd9d8b39b3ee8f59e2c70b3824d;hpb=5e9977948a37d9ff7ae73479a72b2b2e01c19b16 diff --git a/scanlib.pm b/scanlib.pm index 50a6951..65b3d7a 100644 --- a/scanlib.pm +++ b/scanlib.pm @@ -142,6 +142,8 @@ sub scanspooldir() { my $skip; # Flow control my $walk; # index variable my $taginfo; # Tag info + + my @archs_with_source = ( @bugcfg::architectures, 'source' ); chdir($dir) or die "chdir $dir: $!\n"; @@ -175,9 +177,9 @@ sub scanspooldir() { next if $skip==1; my %disttags = (); - $disttags{'oldstable'} = grep(/^sarge$/, @tags); - $disttags{'stable'} = grep(/^etch$/, @tags); - $disttags{'testing'} = grep(/^lenny$/, @tags); + $disttags{'oldstable'} = grep(/^etch$/, @tags); + $disttags{'stable'} = grep(/^lenny$/, @tags); + $disttags{'testing'} = grep(/^squeeze$/, @tags); $disttags{'unstable'} = grep(/^sid$/, @tags); $disttags{'experimental'} = grep(/^experimental$/, @tags); @@ -210,7 +212,7 @@ sub scanspooldir() { bug => $f, status => $bug, dist => $dist, - arch => \@bugcfg::architectures + arch => \@archs_with_source ); # ignore bugs that are absent/fixed in this distribution, include everything @@ -226,7 +228,7 @@ sub scanspooldir() { next if !$affects_any; } - for my $keyword qw(pending patch help moreinfo unreproducible security upstream etch-ignore lenny-ignore) { + for my $keyword qw(pending patch help moreinfo unreproducible security upstream etch-ignore lenny-ignore squeeze-ignore) { $bi->{$keyword} = grep(/^$keyword$/, @tags); } @@ -318,13 +320,13 @@ sub wwwname() { sub check_worry { my ($bi) = @_; - return ($bi->{'testing'} && !$bi->{'lenny-ignore'}); + return ($bi->{'testing'} && !$bi->{'squeeze-ignore'}); } sub check_worry_stable { my ($bi) = @_; - return ($bi->{'stable'} && !$bi->{'etch-ignore'}); + return ($bi->{'stable'} && !$bi->{'lenny-ignore'}); } sub check_worry_unstable { @@ -344,7 +346,7 @@ sub get_taginfo { $taginfo .= $bi->{'unreproducible'} ? "R" : " "; $taginfo .= $bi->{'security'} ? "S" : " "; $taginfo .= $bi->{'upstream'} ? "U" : " "; - $taginfo .= ($bi->{'etch-ignore'} || $bi->{'lenny-ignore'}) ? "I" : " "; + $taginfo .= ($bi->{'lenny-ignore'} || $bi->{'squeeze-ignore'}) ? "I" : " "; return $taginfo; }