]> git.donarmstrong.com Git - debbugs.git/commitdiff
Fix set_found bug which cleared partially matching versions; thanks to Andreas Beckma...
authorDon Armstrong <don@donarmstrong.com>
Tue, 4 Dec 2012 00:18:42 +0000 (16:18 -0800)
committerDon Armstrong <don@donarmstrong.com>
Tue, 4 Dec 2012 00:18:42 +0000 (16:18 -0800)
Debbugs/Control.pm

index 39e6648bbe8478aea8e28b07e454007f0c8f4e3d..33db8816a2a28f5ac5de974b71cdac7f3eb5ed90 100644 (file)
@@ -1591,7 +1591,7 @@ sub set_found {
                    }
                    # if the found we are adding matches any fixed
                    # versions, remove them
-                   my @temp = grep m{(^|/)\Q$sver\E}, keys %fixed_versions;
+                   my @temp = grep m{(^|/)\Q$sver\E$}, keys %fixed_versions;
                    delete $fixed_versions{$_} for @temp;
                    $fixed_removed{$_} = 1 for @temp;
                }
@@ -1615,7 +1615,7 @@ sub set_found {
                # in the case of removal, we only concern ourself with
                # the version passed, not the source version it maps
                # to
-               my @temp = grep m{(^|/)\Q$version\E}, keys %found_versions;
+               my @temp = grep m{(?:^|/)\Q$version\E$}, keys %found_versions;
                delete $found_versions{$_} for @temp;
                $found_removed{$_} = 1 for @temp;
            }