diff options
author | Eric Wong <e@80x24.org> | 2015-08-22 11:41:19 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-08-22 11:42:30 +0000 |
commit | 4f4264f7ac384b02442bdf7c5cc6e838feb86c93 (patch) | |
tree | db5e66e907d903d7298695fcb41c1b1a5701e6cf /public-inbox-index | |
parent | ed872bd8ed6c6a10096b9946614715a03da76485 (diff) | |
download | public-inbox-4f4264f7ac384b02442bdf7c5cc6e838feb86c93.tar.gz |
This makes organization easier and reduces the amount of code loaded for a PSGI, mod_perl or CGI instance.
Diffstat (limited to 'public-inbox-index')
-rwxr-xr-x | public-inbox-index | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public-inbox-index b/public-inbox-index index 1104bbc8..f39ad9e1 100755 --- a/public-inbox-index +++ b/public-inbox-index @@ -10,7 +10,7 @@ use strict; use warnings; my $usage = "public-inbox-index GIT_DIR"; use PublicInbox::Config; -eval { require PublicInbox::Search }; +eval { require PublicInbox::SearchIdx }; if ($@) { print STDERR "Search::Xapian required for $0\n"; exit 1; @@ -26,6 +26,6 @@ foreach my $dir (@ARGV) { sub index_dir { my ($git_dir) = @_; -d $git_dir or die "$git_dir does not appear to be a git repository\n"; - my $s = PublicInbox::Search->new($git_dir, 1); + my $s = PublicInbox::SearchIdx->new($git_dir, 1); $s->index_sync; } |