From: Eric Wong Date: Mon, 28 Nov 2022 05:32:13 +0000 (+0000) Subject: lei_mirror: don't warn on missing manifest on initial clone X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=a38db0188e264c08e39354d8945cf1e7ac35e708 lei_mirror: don't warn on missing manifest on initial clone Users may choose to specify a manifest on the initial clone, so don't complain if it's missing in that case. --- diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm index 8cd64b65..e0a212de 100644 --- a/lib/PublicInbox/LeiMirror.pm +++ b/lib/PublicInbox/LeiMirror.pm @@ -826,7 +826,7 @@ sub load_current_manifest ($) { if (open(my $fh, '<', $fn)) { decode_manifest($fh, $fn, $fn); } elsif ($!{ENOENT}) { # non-fatal, we can just do it slowly - warn "open($fn): $!\n"; + warn "open($fn): $!\n" if -d $self->{dst}; undef; } else { die "open($fn): $!\n";