Commit 9ce55085 authored by gregor herrmann's avatar gregor herrmann

patchedit: always set Last-Update to the mtime of the patch file

when in fix mode.
parent 8797f60a
......@@ -192,8 +192,10 @@ sub fix_patch {
$patch_content->{'Reviewed-by'} ||= "$author\n"
unless $patch_content->{'Reviewed-by'}
|| $patch_content->{'Acked-by'};
# stat[9] = mtime
$patch_content->{'Last-Update'}
||= DateTime->now->set_time_zone('local')->strftime('%Y-%m-%d')
= DateTime->from_epoch( epoch => ( stat($patch) )[9] )
->set_time_zone('local')->strftime('%Y-%m-%d')
. "\n";
$patch_content->{'Applied-Upstream'} ||= "*** FIXME ***\n";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment