]> git.donarmstrong.com Git - debbugs.git/commitdiff
use binary_to_source cache in Debbugs::SOAP::get_status
authorDon Armstrong <don@donarmstrong.com>
Wed, 14 Feb 2018 05:57:03 +0000 (21:57 -0800)
committerDon Armstrong <don@donarmstrong.com>
Wed, 14 Feb 2018 05:57:03 +0000 (21:57 -0800)
Debbugs/SOAP.pm

index 9ed0249b863731504e1975eb105edd90a34abfe3..a0c3cbf2190d06ea3f5b04dfb9d9278039929990 100644 (file)
@@ -127,6 +127,7 @@ sub get_status {
              @bugs = @{$bugs[0]};
      }
      my %status;
+     my %binary_to_source_cache;
      for my $bug (@bugs) {
          my $bug_status;
          if (ref($bug)) {
@@ -134,11 +135,14 @@ sub get_status {
               next unless defined $param{bug};
               $bug = $param{bug};
               $bug_status = get_bug_status(map {(exists $param{$_})?($_,$param{$_}):()}
-                                           qw(bug dist arch bugusertags sourceversions version indicatesource)
+                                           qw(bug dist arch bugusertags sourceversions version indicatesource),
+                                           binary_to_source_cache => \%binary_to_source_cache,
                                           );
          }
          else {
-              $bug_status = get_bug_status(bug => $bug);
+             $bug_status = get_bug_status(bug => $bug,
+                                          binary_to_source_cache => \%binary_to_source_cache,
+                                         );
          }
          if (defined $bug_status and keys %{$bug_status} > 0) {
               $status{$bug}  = $bug_status;