]> git.donarmstrong.com Git - bugscan.git/commitdiff
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 8ef9b6726244500f54e9bb1917ea95d5688661e4..4c97a1c690c25d4fbd5f968a0030d9b49af0eddf 100644 (file)
@@ -229,7 +229,20 @@ sub scanspooldir() {
                        local $SIG{__WARN__} = sub {};
 
                        next if (!$disttags{$dist});
                        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
 
                        # 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