From: Don Armstrong Date: Tue, 2 Apr 2013 17:14:44 +0000 (-0700) Subject: merge master X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=7564a358fe324b1acd536fa05c42d16a6b610de8 merge master --- 7564a358fe324b1acd536fa05c42d16a6b610de8 diff --cc Debbugs/Status.pm index 7ad3af4,bf3d2ab..ab35b81 --- a/Debbugs/Status.pm +++ b/Debbugs/Status.pm @@@ -280,13 -276,8 +280,13 @@@ sub read_bug my $status_modified = (stat($status))[9]; # Add log last modified time - $data{log_modified} = (stat($log))[9]; + $data{log_modified} = (stat($log))[9] // (stat("${log}.gz"))[9]; + my $report_modified = (stat($report))[9] // $data{log_modified}; $data{last_modified} = max($status_modified,$data{log_modified}); + # if the date isn't set (ancient bug), use the smallest of any of the modified + if (not defined $data{date} or not length($data{date})) { + $data{date} = min($report_modified,$status_modified,$data{log_modified}); + } $data{location} = $location; $data{archived} = (defined($location) and ($location eq 'archive'))?1:0; $data{bug_num} = $param{bug};