X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=blobdiff_plain;f=scanlib.pm;h=25aafcd9ec7a139145da1319041da561191c7a39;hp=83e4b601fca414f90847e42e6fe3396174129ba3;hb=6535c7957521d2d4f852c2a2772b53dd8a905e52;hpb=849c4e5e737c1c66e5bcfcd108278457cd83f88d diff --git a/scanlib.pm b/scanlib.pm index 83e4b60..25aafcd 100644 --- a/scanlib.pm +++ b/scanlib.pm @@ -217,13 +217,13 @@ sub scanspooldir() { $disttags{'experimental'} = grep(/^experimental$/, @tags); my $relinfo = ""; - warn $section{$bug->{'package'}}; - if ($section{$bug->{'package'}} eq 'pseudo') { + if (defined($section{$bug->{'package'}}) && $section{$bug->{'package'}} eq 'pseudo') { # versioning information makes no sense for pseudo packages, # just use the tags for my $dist qw(oldstable stable testing unstable experimental) { $relinfo .= uc(substr($dist, 0, 1)) if $disttags{$dist}; } + next if (length($bug->{'done'})); } else { # default according to dondelelcaro 2006-11-11 if (!$disttags{'oldstable'} && !$disttags{'stable'} && !$disttags{'testing'} && !$disttags{'unstable'} && !$disttags{'experimental'}) { @@ -397,7 +397,7 @@ sub check_worry { if ($status =~ m/^\[[^]]*I/ or $status =~ m/ \[[^]]*X/ or - ($status =~ m/ \[[^]]*[OSUE]/ and $status !~ m/ \[[^]]*T/)) { + $status !~ m/ \[[^]]*T/) { return 0; } return 1;