lib/PublicInbox/LeiMirror.pm | 6 ++++-- diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm index 3fea4c290acf94c435041ade744495fdca71c6c1..21341efb99ab32d85f2a008767c974de4d3356b3 100644 --- a/lib/PublicInbox/LeiMirror.pm +++ b/lib/PublicInbox/LeiMirror.pm @@ -218,8 +218,6 @@ sub index_cloned_inbox { my ($self, $iv) = @_; my $lei = $self->{lei}; - eval { set_description($self) }; - warn $@ if $@; # n.b. public-inbox-clone works w/o (SQLite || Xapian) # lei is useless without Xapian + SQLite @@ -580,6 +578,8 @@ die "rename($f, $o/info/alternates): $!"; $f->unlink_on_destroy(0); } pack_refs($self, $dst) if delete $self->{-do_pack_refs}; + eval { set_description($self) }; + warn $@ if $@; return if ($self->{-is_epoch} || $self->{lei}->{opt}->{'inbox-config'} ne 'always'); write_makefile($dst, 1); @@ -604,6 +604,8 @@ chmod($st[2] & 0555, $edst) or die "chmod(a-w, $edst): $!"; } write_makefile($dst, 2); undef $lck; # unlock + eval { set_description($self) }; + warn $@ if $@; index_cloned_inbox($self, 2); }