]> git.donarmstrong.com Git - debbugs.git/commitdiff
We should only delete a version in found if it's not already a fully qualified source...
authorDon Armstrong <don@donarmstrong.com>
Wed, 27 Feb 2013 20:09:38 +0000 (12:09 -0800)
committerDon Armstrong <don@donarmstrong.com>
Wed, 27 Feb 2013 20:09:38 +0000 (12:09 -0800)
See http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=20;bug=701350 for the failure.

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;