X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=blobdiff_plain;f=scanlib.pm;h=8ef9b6726244500f54e9bb1917ea95d5688661e4;hp=b207b14fd17f8ea65bd7648f870a1d31b6ba207a;hb=40663f4a504fe6bb0a298488ed5393d692786c82;hpb=20740b5329b1ab9bf8941e179cfca6fa0981ed16 diff --git a/scanlib.pm b/scanlib.pm index b207b14..8ef9b67 100644 --- a/scanlib.pm +++ b/scanlib.pm @@ -14,8 +14,7 @@ # %packagelist - map from packagename to bugreports # %NMU - map with NMU information -#use lib qw(/org/bugs.debian.org/perl/); -use lib qw(/home/sesse/debbugs); +use lib qw(/org/bugs.debian.org/perl); use LWP::UserAgent; use Debbugs::MIME qw(decode_rfc1522 encode_rfc1522); use Debbugs::Packages; @@ -227,8 +226,16 @@ sub scanspooldir() { # only bother to check the versioning status for the distributions indicated by the tags my $relinfo = ""; for my $dist qw(oldstable stable testing unstable experimental) { + local $SIG{__WARN__} = sub {}; + next if (!$disttags{$dist}); - if (Debbugs::Status::check_bug_presence(bug => $f, status => $bug, dist => $dist) eq 'pending') { + my $presence = Debbugs::Status::bug_presence(bug => $f, status => $bug, dist => $dist); + + # 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 + # indicates that no versioning information is present and it's not closed + # unversioned) + if (!defined($presence) || ($presence ne 'absent' && $presence ne 'fixed')) { $relinfo .= uc(substr($dist, 0, 1)); } }