X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=blobdiff_plain;f=scanlib.pm;h=0f64165b5a0ab7b649867e1fcc6e5fd1a14e534e;hp=a2c378b73913439ce72037904f29f30dd8371e34;hb=b69a4d8a00c3adb855d103a4fa10c93fd2a447f2;hpb=c254a0d0c6ce35fab30d43d9e4e7e3015e250013 diff --git a/scanlib.pm b/scanlib.pm index a2c378b..0f64165 100644 --- a/scanlib.pm +++ b/scanlib.pm @@ -1,5 +1,5 @@ #! /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 , @@ -224,8 +224,8 @@ sub scanspooldir() { 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 sarge-ignore etch-ignore) { + $bi->{$keyword} = grep(/^$keyword$/, @tags); } if (length($bug->{'mergedwith'})) { @@ -322,7 +322,7 @@ sub check_worry { sub check_worry_stable { my ($bi) = @_; - return ($bi->{'stable'}); + return ($bi->{'stable'} && !$bi->{'sarge-ignore'}); } sub get_taginfo { @@ -336,7 +336,7 @@ sub get_taginfo { $taginfo .= $bi->{'unreproducible'} ? "R" : " "; $taginfo .= $bi->{'security'} ? "S" : " "; $taginfo .= $bi->{'upstream'} ? "U" : " "; - $taginfo .= $bi->{'etch-ignore'} ? "I" : " "; + $taginfo .= ($bi->{'sarge-ignore'} || $bi->{'etch-ignore'}) ? "I" : " "; return $taginfo; }