]> git.donarmstrong.com Git - bugscan.git/blobdiff - scanlib.pm
Small simplification.
[bugscan.git] / scanlib.pm
index 3dca704000de24c6dfc17caa78410b7cde07edaf..0f64165b5a0ab7b649867e1fcc6e5fd1a14e534e 100644 (file)
@@ -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 <dark@debian.org>,
@@ -225,7 +225,7 @@ sub scanspooldir() {
                }
 
                for my $keyword qw(pending patch help moreinfo unreproducible security upstream sarge-ignore etch-ignore) {
-                       $bi->{$keyword} = ($bug->{'keywords'} =~ /\b$keyword\b/) ? 1 : 0;
+                       $bi->{$keyword} = grep(/^$keyword$/, @tags);
                }
 
                if (length($bug->{'mergedwith'})) {