]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Control.pm
read report from the spool directory even if we're not in it
[debbugs.git] / Debbugs / Control.pm
index 915b6749d93e48dbb182fda110adce7c9e97c8ff..a89a7eb7386594c888bb55e71fddf2291390f1b5 100644 (file)
@@ -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 $/;