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,BAYES_00 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 B0F2A1F609 for ; Wed, 29 May 2019 20:56:32 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/2] index: remove warning on unconfigured inboxes Date: Wed, 29 May 2019 20:56:31 +0000 Message-Id: <20190529205632.18760-2-e@80x24.org> In-Reply-To: <20190529205632.18760-1-e@80x24.org> References: <20190529205632.18760-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: It's annoying for people using "git fetch && public-inbox-index" as one user; and running -httpd/-nntpd as a different user (where users see different config files). --- script/public-inbox-index | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/script/public-inbox-index b/script/public-inbox-index index c0d637b..e4a7be1 100755 --- a/script/public-inbox-index +++ b/script/public-inbox-index @@ -20,9 +20,7 @@ die "--jobs must be positive\n" if defined $opt->{jobs} && $opt->{jobs} <= 0; sub usage { print STDERR "Usage: $usage\n"; exit 1 } -# do we really care about this message? It's annoying... -my $warn = 'public-inbox unconfigured for serving, indexing anyways...'; -my @ibxs = PublicInbox::Admin::resolve_inboxes(\@ARGV, $warn); +my @ibxs = PublicInbox::Admin::resolve_inboxes(\@ARGV); PublicInbox::Admin::require_or_die('-index'); usage() unless @ibxs; my $mods = {}; -- EW