Ignore bugs on hurd-i386 and m68k. This moves a bit more logic back into
authorSteinar H. Gunderson <sesse@rietz>
Fri, 9 Mar 2007 14:45:10 +0000 (14:45 +0000)
committerSteinar H. Gunderson <sesse@rietz>
Fri, 9 Mar 2007 14:45:10 +0000 (14:45 +0000)
scanlib from debbugs; hopefully debbugs will support a scenario like this
soon.

scanlib.pm

index 8ef9b67..4c97a1c 100644 (file)
@@ -229,7 +229,20 @@ sub scanspooldir() {
                        local $SIG{__WARN__} = sub {};
 
                        next if (!$disttags{$dist});
-                       my $presence = Debbugs::Status::bug_presence(bug => $f, status => $bug, dist => $dist);
+
+                       # only check for the archs we care about
+                       my %svhash = ();
+                       for my $arch qw(alpha amd64 arm hppa i386 ia64 mips mipsel powerpc s390 sparc) {
+                               my @versions = Debbugs::Packages::getversions($bug->{'package'}, $dist, $arch);
+                               my @sourceversions = Debbugs::Packages::makesourceversions($bug->{'package'}, $arch, @versions);
+
+                               for my $sv (@sourceversions) {
+                                       $svhash{$sv} = 1;
+                               }
+                       }
+
+                       my @sourceversions = keys %svhash;
+                       my $presence = Debbugs::Status::bug_presence(bug => $f, status => $bug, sourceversions => \@sourceversions);
 
                        # ignore bugs that are absent/fixed in this distribution, include everything
                        # else (that is, "found" which says that the bug is present, and undef, which