]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei_mirror: don't warn on missing manifest on initial clone
authorEric Wong <e@80x24.org>
Mon, 28 Nov 2022 05:32:13 +0000 (05:32 +0000)
committerEric Wong <e@80x24.org>
Mon, 28 Nov 2022 23:38:58 +0000 (23:38 +0000)
Users may choose to specify a manifest on the initial clone,
so don't complain if it's missing in that case.

lib/PublicInbox/LeiMirror.pm

index 8cd64b65d88418687ba067ad80c306e0107d2ed0..e0a212dede3268f1b87a5348fcbdcf292ec1fac6 100644 (file)
@@ -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";