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 032A61F5AE for ; Sat, 24 Apr 2021 23:15:27 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] lei_xsearch: show --output location with match count Date: Sat, 24 Apr 2021 19:15:26 -0400 Message-Id: <20210424231526.63238-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This makes "lei up --all=local" output easier-to-understand when it's updating multiple saved searches. --- lib/PublicInbox/LeiXSearch.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm index e1538391..018b60f9 100644 --- a/lib/PublicInbox/LeiXSearch.pm +++ b/lib/PublicInbox/LeiXSearch.pm @@ -354,7 +354,9 @@ sub query_done { # EOF callback for main daemon } my $wait = $lei->{sto} ? $lei->{sto}->ipc_do('done') : undef; $lei->{ovv}->ovv_end($lei); + my @out; if ($l2m) { # close() calls LeiToMail reap_compress + @out = (" in $lei->{ovv}->{dst}"); if (my $out = delete $lei->{old_1}) { if (my $mbout = $lei->{1}) { close($mbout) or return $lei->fail(<<""); @@ -372,7 +374,7 @@ Error closing $lei->{ovv}->{dst}: $! } } $lei->{-progress} and - $lei->err('# ', $lei->{-mset_total} // 0, " matches"); + $lei->err('# ', $lei->{-mset_total} // 0, " matches", @out); $lei->dclose; }