From: Don Armstrong Date: Wed, 27 Feb 2013 20:09:38 +0000 (-0800) Subject: We should only delete a version in found if it's not already a fully qualified source... X-Git-Tag: release/2.6.0~317 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;ds=sidebyside;h=a35b0737599506735c5f7f009269e117a58be925;p=debbugs.git We should only delete a version in found if it's not already a fully qualified source version. See http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=20;bug=701350 for the failure. --- diff --git a/Debbugs/Control.pm b/Debbugs/Control.pm index 33db881..5739734 100644 --- a/Debbugs/Control.pm +++ b/Debbugs/Control.pm @@ -1578,7 +1578,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;