]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiMirror.pm
clone|fetch: preserve mtime of modified manifest.js.gz
[public-inbox.git] / lib / PublicInbox / LeiMirror.pm
index e20d30b48546fc9c1344d78b9d699858af4db0a6..fa1d2e88b20bbec1bf6a745418ab51c141f40381 100644 (file)
@@ -408,7 +408,9 @@ EOM
                # users won't have to delete manifest if they +w an
                # epoch they no longer want to skip
                my $json = PublicInbox::Config->json->encode($m);
+               my $mtime = (stat($fn))[9];
                gzip(\$json => $fn) or die "gzip: $GzipError";
+               utime($mtime, $mtime, $fn) or die "utime(..., $fn): $!";
        }
        ft_rename($ft, "$self->{dst}/manifest.js.gz", 0666);
 }