From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id F330C203C7 for ; Mon, 28 Nov 2022 05:32:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1669613569; bh=U0XSKEXhjahWL48Qt1WCQQABZ8kFvkAQwbqfY6ResN8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cl3H4xM8PldppkBlvQ7kutO8PEz3d6Ss9ltpEGXvDbuPa+V96gSB2tqJdXM5zK2U8 AAVLg8f9wKVQR0OpTJ2+OAkNU6liyc0KabwCEcJNFdQkZg/y4UDTPlgR4WmxrjFHJF fFdAgAFuNPiNjshb7taykAogBuN4jmF7kBpdyg7w= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 76/95] lei_mirror: don't warn on missing manifest on initial clone Date: Mon, 28 Nov 2022 05:32:13 +0000 Message-Id: <20221128053232.291618-77-e@80x24.org> In-Reply-To: <20221128053232.291618-1-e@80x24.org> References: <20221128053232.291618-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";