From: Don Armstrong Date: Mon, 26 Mar 2012 00:28:15 +0000 (-0700) Subject: read report from the spool directory even if we're not in it X-Git-Tag: release/2.6.0~401 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=6f33f786cb1fbce5eb684a46a7ff86314cbe2ae8 read report from the spool directory even if we're not in it --- diff --git a/Debbugs/Control.pm b/Debbugs/Control.pm index 915b674..a89a7eb 100644 --- a/Debbugs/Control.pm +++ b/Debbugs/Control.pm @@ -951,8 +951,8 @@ sub set_done { for my $data (@data) { my $old_data = dclone($data); my $hash = get_hashname($data->{bug_num}); - my $report_fh = IO::File->new("db-h/$hash/$data->{bug_num}.report",'r') or - die "Unable to open original report db-h/$hash/$data->{bug_num}.report for reading: $!"; + my $report_fh = IO::File->new("$config{spool_dir}/db-h/$hash/$data->{bug_num}.report",'r') or + die "Unable to open original report $config{spool_dir}/db-h/$hash/$data->{bug_num}.report for reading: $!"; my $orig_report; { local $/;