Give "source" as architecture for bug_presence(), in order to also detect
authorSteinar H. Gunderson <sesse@rietz>
Tue, 19 Jun 2007 22:27:39 +0000 (22:27 +0000)
committerSteinar H. Gunderson <sesse@rietz>
Tue, 19 Jun 2007 22:27:39 +0000 (22:27 +0000)
bugs that are filed against source packages that are not also binary
packages.

scanlib.pm

index 50a6951..7451d88 100644 (file)
@@ -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";
 
@@ -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