if not exists $param{bug} and not exists $param{summary};
my $status;
my $log;
+ my $location;
if (not defined $param{summary}) {
- my ($lref, $location) = @param{qw(bug location)};
+ my $lref;
+ ($lref,$location) = @param{qw(bug location)};
if (not defined $location) {
$location = getbuglocation($lref,'summary');
return undef if not defined $location;
$status = $param{summary};
$log = $status;
$log =~ s/\.summary$/.log/;
+ ($location) = $status =~ m/(db-h|db|archive)/;
}
my $status_fh = new IO::File $status, 'r' or
warn "Unable to open $status for reading: $!" and return undef;
}
# Add log last modified time
$data{log_modified} = (stat($log))[9];
- $date{location} = $location;
+ $data{location} = $location;
return \%data;
}