X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=scanlib.pm;h=b1bd14cedbd6a006156419b58aafa28ee89dd4da;hb=65cf261c15c35f62bde5f234b5e92df8e8c98a07;hp=dc4aac662351f0b5826a4ed2075d24c45906e418;hpb=4e592687c1e5ade0ccc59f80f6fa2a8d814f7859;p=bugscan.git diff --git a/scanlib.pm b/scanlib.pm index dc4aac6..b1bd14c 100644 --- a/scanlib.pm +++ b/scanlib.pm @@ -215,6 +215,13 @@ sub scanspooldir() { $disttags{'testing'} = grep(/^etch$/, @tags); $disttags{'unstable'} = grep(/^sid$/, @tags); $disttags{'experimental'} = grep(/^experimental$/, @tags); + + # default according to dondelelcaro 2006-11-11 + if (!$disttags{'oldstable'} && !$disttags{'stable'} && !$disttags{'testing'} && !$disttags{'unstable'} && !$disttags{'experimental'}) { + $disttags{'testing'} = 1; + $disttags{'unstable'} = 1; + $disttags{'experimental'} = 1; + } my $relinfo = ""; if (defined($section{$bug->{'package'}}) && $section{$bug->{'package'}} eq 'pseudo') { @@ -223,14 +230,8 @@ sub scanspooldir() { 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'}) { - $disttags{'testing'} = 1; - $disttags{'unstable'} = 1; - $disttags{'experimental'} = 1; - } - # only bother to check the versioning status for the distributions indicated by the tags for my $dist qw(oldstable stable testing unstable experimental) { local $SIG{__WARN__} = sub {};