From c626c9981bc8d1e6c0ce36e443787a516dedfaf4 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 18 Feb 2009 21:04:32 -0800 Subject: [PATCH] add last modified field to status --- Debbugs/Status.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Debbugs/Status.pm b/Debbugs/Status.pm index be296fd..57c6357 100644 --- a/Debbugs/Status.pm +++ b/Debbugs/Status.pm @@ -253,8 +253,10 @@ sub read_bug{ $data{$field} = decode_rfc1522($data{$field}); } } + my $status_modified = (stat($status))[9]; # Add log last modified time $data{log_modified} = (stat($log))[9]; + $data{last_modified} = max($status_modified,$data{log_modified}); $data{location} = $location; $data{archived} = (defined($location) and ($location eq 'archive'))?1:0; $data{bug_num} = $param{bug}; -- 2.39.2