]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/SOAP.pm
merge changes from dla source
[debbugs.git] / Debbugs / SOAP.pm
index ed66b18979faf9ee70dbfbf0089eb619596f133d..32e874e0b366626982412b5e6609add1a67c67e1 100644 (file)
@@ -225,13 +225,7 @@ sub get_bug_log{
      my $VERSION = __populate_version(pop);
      my ($self,$bug,$msg_num) = @_;
 
-     my $location = getbuglocation($bug,'log');
-     my $bug_log = getbugcomponent($bug,'log',$location);
-
-     my $log_fh = IO::File->new($bug_log, 'r') or
-         die "Unable to open bug log $bug_log for reading: $!";
-
-     my $log = Debbugs::Log->new($log_fh) or
+     my $log = Debbugs::Log->new(bug_num => $bug) or
          die "Debbugs::Log was unable to be initialized";
 
      my %seen_msg_ids;
@@ -276,7 +270,7 @@ sub binary_to_source{
      my $VERSION = __populate_version(pop);
      my ($self,@params) = @_;
 
-     return [binarytosource(@params)];
+     return [Debbugs::Packages::binarytosource(@params)];
 }
 
 =head2 source_to_binary
@@ -297,7 +291,7 @@ sub source_to_binary {
      my $VERSION = __populate_version(pop);
      my ($self,@params) = @_;
 
-     return [source_to_binary(@params)];
+     return [Debbugs::Packages::sourcetobinary(@params)];
 }
 
 =head2 get_versions