From: Don Armstrong Date: Tue, 2 Apr 2013 17:13:22 +0000 (-0700) Subject: check the log modified time of an optional gziped log X-Git-Tag: release/2.6.0~280^2~8 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=ded1b3d0daf464ae240e9e088edc30986992537a check the log modified time of an optional gziped log --- diff --git a/Debbugs/Status.pm b/Debbugs/Status.pm index f44f9fc..bf3d2ab 100644 --- a/Debbugs/Status.pm +++ b/Debbugs/Status.pm @@ -276,7 +276,7 @@ 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]; $data{last_modified} = max($status_modified,$data{log_modified}); $data{location} = $location; $data{archived} = (defined($location) and ($location eq 'archive'))?1:0;