]> Sergey Matveev's repositories - public-inbox.git/commitdiff
extsearch: fix remaining "eindex" references
authorEric Wong <e@80x24.org>
Mon, 23 Nov 2020 07:05:57 +0000 (07:05 +0000)
committerEric Wong <e@80x24.org>
Tue, 24 Nov 2020 05:03:55 +0000 (05:03 +0000)
We'll replace "$EINDEX" => "$EXTINDEX" in a user-visible
line and also some hacker-only tests.

"eindex" is no longer used because it rhymes with "reindex",
so remove the last instance of it.

Fixes: 6b0fed3b03263ba2 ("extsearch: rename -eindex to -extindex")
lib/PublicInbox/ExtSearch.pm
t/extsearch.t

index c41ae443ceb71ac5831e8048ba0f6aa7227f523d..dd93cd32936d44a866ad82924e001255b513d846 100644 (file)
@@ -57,7 +57,7 @@ sub description {
        my ($self) = @_;
        ($self->{description} //=
                PublicInbox::Inbox::cat_desc("$self->{topdir}/description")) //
-               '$EINDEX_DIR/description missing';
+               '$EXTINDEX_DIR/description missing';
 }
 
 sub cloneurl { [] } # TODO
index dc825bf4199ba40b0fa4bdb0388da9147329d0e0..0045294b446b38584d28f0bb5bb8a97d552b7cb0 100644 (file)
@@ -35,9 +35,9 @@ seek($fh, 0, SEEK_SET) or BAIL_OUT $!;
 run_script(['-mda', '--no-precheck'], $env, { 0 => $fh }) or BAIL_OUT '-mda';
 run_script(['-index', "$home/v1test"]) or BAIL_OUT "index $?";
 
-ok(run_script([qw(-extindex --all), "$home/eindex"]), 'extindex init');
+ok(run_script([qw(-extindex --all), "$home/extindex"]), 'extindex init');
 
-my $es = PublicInbox::ExtSearch->new("$home/eindex");
+my $es = PublicInbox::ExtSearch->new("$home/extindex");
 {
        my $smsg = $es->over->get_art(1);
        ok($smsg, 'got first article');
@@ -55,7 +55,7 @@ my $es = PublicInbox::ExtSearch->new("$home/eindex");
        my $env = { MAIL_EDITOR => "$^X -i -p -e 's/test message/BEST MSG/'" };
        my $cmd = [ qw(-edit -Ft/utf8.eml), "$home/v2test" ];
        ok(run_script($cmd, $env, $opt), '-edit');
-       ok(run_script([qw(-extindex --all), "$home/eindex"], undef, $opt),
+       ok(run_script([qw(-extindex --all), "$home/extindex"], undef, $opt),
                'extindex again');
        like($err, qr/discontiguous range/, 'warned about discontiguous range');
        my $msg1 = $es->over->get_art(1) or BAIL_OUT 'msg1 missing';