X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FControl.pm;h=95876245ba215b59ffe4e37682af88bf0e2db0c2;hb=04265c83beff7e1ccb28a88ff7257fe36b2fc45d;hp=44463ba271189f4b9efd3c3f8a55df7797e4eb66;hpb=03115a2dbff942931b91ff106865a935de17db8e;p=debbugs.git diff --git a/Debbugs/Control.pm b/Debbugs/Control.pm index 44463ba..9587624 100644 --- a/Debbugs/Control.pm +++ b/Debbugs/Control.pm @@ -1579,7 +1579,11 @@ sub set_found { if (not @svers) { @svers = $version; } - else { + elsif (not grep {$version eq $_} @svers) { + # The $version was not equal to one of the source + # versions, so it's probably unqualified (or just + # wrong). Delete it, and use the source versions + # instead. if (exists $found_versions{$version}) { delete $found_versions{$version}; $found_removed{$version} = 1;