From: Eric Wong Date: Sat, 24 Apr 2021 23:15:26 +0000 (-0400) Subject: lei_xsearch: show --output location with match count X-Git-Tag: v1.7.0~750 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=d04a5a1eb026fa740e330d2b64af17d80e746624;p=public-inbox.git lei_xsearch: show --output location with match count This makes "lei up --all=local" output easier-to-understand when it's updating multiple saved searches. --- 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; }