]> git.donarmstrong.com Git - debbugs.git/commitdiff
read report from the spool directory even if we're not in it
authorDon Armstrong <don@donarmstrong.com>
Mon, 26 Mar 2012 00:28:15 +0000 (17:28 -0700)
committerDon Armstrong <don@donarmstrong.com>
Mon, 26 Mar 2012 00:28:15 +0000 (17:28 -0700)
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 $/;