From 3c4504cce7015024dbe09382f1e43a407be9a26e Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 3 Jul 2007 02:03:01 -0700 Subject: [PATCH] * Bring the notfound regex into line with the found regex * Indicate when found reopens a bug * Capture the package name in the found regex as well --- scripts/service.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/service.in b/scripts/service.in index 97ccd3c..d71bb13 100755 --- a/scripts/service.in +++ b/scripts/service.in @@ -534,8 +534,8 @@ END } } } elsif (m{^found\s+\#?(-?\d+) - (?:\s+(?:$config{package_name_re}\/)? - ($config{package_version_re}))?$}ix) { + (?:\s+((?:$config{package_name_re}\/)? + $config{package_version_re}))?$}ix) { $ok++; $ref= $1; $version= $2; @@ -565,6 +565,7 @@ END map {s{.+/}{}; $_;} @{$data->{fixed_versions}}; if (not @fixed_order or (Debbugs::Versions::Dpkg::vercmp($version_only,$fixed_order[-1]) >= 0)) { $data->{done} = ''; + $action = "$gBug marked as found in version $version and reopened."; } } else { # Versionless found; assume old-style "not fixed at @@ -575,7 +576,9 @@ END } while (&getnextbug); } } - } elsif (m/^notfound\s+\#?(-?\d+)\s+(\d.*)$/i) { + } elsif (m[^notfound\s+\#?(-?\d+) + (?:\s+(?:$config{package_name_re}\/)? + ($config{package_version_re}))$]ix) { $ok++; $ref= $1; $version= $2; -- 2.39.2