about summary refs log tree commit homepage
path: root/lib/PublicInbox/Fetch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-11-28 05:31:39 +0000
committerEric Wong <e@80x24.org>2022-11-28 23:38:56 +0000
commit9686e462f9dee7cfa6cf153076e5bf66e4fda74a (patch)
treeb05a342cea8f0ea86e954f7ec8715485fc3dd958 /lib/PublicInbox/Fetch.pm
parente6208a4d8c67e9eccd72d17b85aed7d5a4ad8e31 (diff)
downloadpublic-inbox-9686e462f9dee7cfa6cf153076e5bf66e4fda74a.tar.gz
We can reuse it in PublicInbox::Fetch, too.
Diffstat (limited to 'lib/PublicInbox/Fetch.pm')
-rw-r--r--lib/PublicInbox/Fetch.pm10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/PublicInbox/Fetch.pm b/lib/PublicInbox/Fetch.pm
index 3b6aa389..06ed775f 100644
--- a/lib/PublicInbox/Fetch.pm
+++ b/lib/PublicInbox/Fetch.pm
@@ -12,8 +12,6 @@ use PublicInbox::LEI;
 use PublicInbox::LeiCurl;
 use PublicInbox::LeiMirror;
 use File::Temp ();
-use PublicInbox::Config;
-use IO::Compress::Gzip qw(gzip $GzipError);
 
 sub new { bless {}, __PACKAGE__ }
 
@@ -233,13 +231,7 @@ EOM
         }
         for my $i (@new_epoch) { $mg->epoch_cfg_set($i) }
         if ($ft) {
-                if ($mculled) {
-                        my $json = PublicInbox::Config->json->encode($m1);
-                        my $fn = $ft->filename;
-                        my $mtime = (stat($fn))[9];
-                        gzip(\$json => $fn) or die "gzip: $GzipError";
-                        utime($mtime, $mtime, $fn) or die "utime(..., $fn): $!";
-                }
+                PublicInbox::LeiMirror::dump_manifest($m1 => $ft) if $mculled;
                 PublicInbox::LeiMirror::ft_rename($ft, $mf, 0666);
         }
         $lei->child_error($xit << 8) if $fp2 && $xit;