]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Control.pm
We should only delete a version in found if it's not already a fully qualified source...
[debbugs.git] / Debbugs / Control.pm
index 33db8816a2a28f5ac5de974b71cdac7f3eb5ed90..5739734b06f24f623ff6ddfc37391451c226fcdf 100644 (file)
@@ -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;