#! /usr/bin/perl
-# vim: ts=4 sw=4 nowrap
+# vim: ts=8 sw=8 nowrap
#
# General functions for scanning the BTS-database.
# Based on bugscan, written by Richard Braakman <dark@debian.org>,
next if !$affects_any;
}
- for my $keyword qw(pending patch help moreinfo unreproducible security upstream etch-ignore) {
- $bi->{$keyword} = ($bug->{'keywords'} =~ /\b$keyword\b/) ? 1 : 0;
+ for my $keyword qw(pending patch help moreinfo unreproducible security upstream etch-ignore lenny-ignore) {
+ $bi->{$keyword} = grep(/^$keyword$/, @tags);
}
if (length($bug->{'mergedwith'})) {
sub check_worry {
my ($bi) = @_;
- return ($bi->{'testing'} && !$bi->{'etch-ignore'});
+ return ($bi->{'testing'} && !$bi->{'lenny-ignore'});
}
sub check_worry_stable {
my ($bi) = @_;
- return ($bi->{'stable'});
+ return ($bi->{'stable'} && !$bi->{'etch-ignore'});
}
sub get_taginfo {
$taginfo .= $bi->{'unreproducible'} ? "R" : " ";
$taginfo .= $bi->{'security'} ? "S" : " ";
$taginfo .= $bi->{'upstream'} ? "U" : " ";
- $taginfo .= $bi->{'etch-ignore'} ? "I" : " ";
+ $taginfo .= ($bi->{'etch-ignore'} || $bi->{'lenny-ignore'}) ? "I" : " ";
return $taginfo;
}