]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2005-07-24 18:01:52 by cjwatson]
authorcjwatson <>
Mon, 25 Jul 2005 01:01:52 +0000 (17:01 -0800)
committercjwatson <>
Mon, 25 Jul 2005 01:01:52 +0000 (17:01 -0800)
Fix 'found' to clear the done field if addfoundversions() cleared the most
recent version from fixed_versions, rather than trying to guess itself.

scripts/service.in

index 0f1d9ade85defba6dba6b14a6c16b1a265e94a59..f4b7554e73e712c182973e70bc11af9e493d2b52 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/perl
-# $Id: service.in,v 1.105 2005/07/24 17:31:18 cjwatson Exp $
+# $Id: service.in,v 1.106 2005/07/24 18:01:52 cjwatson Exp $
 #
 # Usage: service <code>.nn
 # Temps:  incoming/P<code>.nn
@@ -374,7 +374,7 @@ END
                             (reverse @{$data->{fixed_versions}})[0];
                         # TODO: what if $data->{package} is a source package?
                         addfoundversions($data, $data->{package}, $version, 'binary');
-                        if (defined $lastfixed and $version eq $lastfixed) {
+                        if (defined $lastfixed and not grep { $_ eq $lastfixed } @{$data->{fixed_versions}}) {
                             $data->{done} = '';
                         }
                     } else {