]> git.donarmstrong.com Git - debbugs.git/commitdiff
add last modified field to status
authorDon Armstrong <don@donarmstrong.com>
Thu, 19 Feb 2009 05:04:32 +0000 (21:04 -0800)
committerDon Armstrong <don@donarmstrong.com>
Thu, 19 Feb 2009 05:04:32 +0000 (21:04 -0800)
Debbugs/Status.pm

index be296fd428ba86b5317e0e16dcc93b4f6c9ac621..57c63570a33bace203ef8e8fe949429435a0a74d 100644 (file)
@@ -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};