diff options
author | Eric Wong <e@80x24.org> | 2016-11-04 21:11:35 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-11-18 21:15:53 +0000 |
commit | d73798ac803114d6cc75d62c624c823d0b553c0d (patch) | |
tree | 5d8ec0a1d2a87d032e1e6d45726e9921cbffc4ad | |
parent | 8f8a070ab8863e0a6726a1d04815b96a0ee432b3 (diff) | |
download | public-inbox-d73798ac803114d6cc75d62c624c823d0b553c0d.tar.gz |
One may build the initial index on a powerful host and transfer it to a weaker one for incremental indexing. Thus there is no requirement to have a configured public-inbox for building the index unless a user needs altid support or some such.
-rwxr-xr-x | script/public-inbox-index | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/script/public-inbox-index b/script/public-inbox-index index 1431b99e..e9bbec9e 100755 --- a/script/public-inbox-index +++ b/script/public-inbox-index @@ -12,7 +12,10 @@ use Getopt::Long qw(:config gnu_getopt no_ignore_case auto_abbrev); use Cwd 'abs_path'; my $usage = "public-inbox-index GIT_DIR"; use PublicInbox::Config; -my $config = PublicInbox::Config->new; +my $config = eval { PublicInbox::Config->new } || eval { + warn "public-inbox unconfigured for serving, indexing anyways...\n"; + {} +}; eval { require PublicInbox::SearchIdx }; if ($@) { print STDERR "Search::Xapian required for $0\n"; |