diff options
author | Eric Wong <e@yhbt.net> | 2020-08-20 20:24:36 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-08-20 21:08:27 +0000 |
commit | 8456276718fa74a3c312b66fd5f568686c3e94b7 (patch) | |
tree | ba8ecc8a22b56c6d8ce9b61c8797e9562a8370e5 /lib/PublicInbox | |
parent | 11b8815b47b334a1726e517e0a443182f835af74 (diff) | |
download | public-inbox-8456276718fa74a3c312b66fd5f568686c3e94b7.tar.gz |
This is helpful with --all, or when multiple inboxes are being indexed.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/Admin.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/PublicInbox/Admin.pm b/lib/PublicInbox/Admin.pm index d99a00b4..f5427af7 100644 --- a/lib/PublicInbox/Admin.pm +++ b/lib/PublicInbox/Admin.pm @@ -207,6 +207,9 @@ sub index_terminate { sub index_inbox { my ($ibx, $im, $opt) = @_; my $jobs = delete $opt->{jobs} if $opt; + if (my $pr = $opt->{-progress}) { + $pr->("indexing $ibx->{inboxdir} ...\n"); + } local %SIG = %SIG; setup_signals(\&index_terminate, $ibx); if (ref($ibx) && $ibx->version == 2) { |