Small simplification.
authorSteinar H. Gunderson <sesse@rietz>
Thu, 22 Mar 2007 20:07:26 +0000 (20:07 +0000)
committerSteinar H. Gunderson <sesse@rietz>
Thu, 22 Mar 2007 20:07:26 +0000 (20:07 +0000)
scanlib.pm

index 90b8cc8..0f64165 100644 (file)
@@ -225,7 +225,7 @@ sub scanspooldir() {
                }
 
                for my $keyword qw(pending patch help moreinfo unreproducible security upstream sarge-ignore etch-ignore) {
                }
 
                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'})) {
                }
 
                if (length($bug->{'mergedwith'})) {