* [PATCH] lei_xsearch: show --output location with match count
@ 2021-04-24 23:15 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2021-04-24 23:15 UTC (permalink / raw)
To: meta
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;
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-24 23:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-24 23:15 [PATCH] lei_xsearch: show --output location with match count Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).