about summary refs log tree commit homepage
path: root/script/public-inbox-index
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-11-04 21:11:35 +0000
committerEric Wong <e@80x24.org>2016-11-18 21:15:53 +0000
commitd73798ac803114d6cc75d62c624c823d0b553c0d (patch)
tree5d8ec0a1d2a87d032e1e6d45726e9921cbffc4ad /script/public-inbox-index
parent8f8a070ab8863e0a6726a1d04815b96a0ee432b3 (diff)
downloadpublic-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.
Diffstat (limited to 'script/public-inbox-index')
-rwxr-xr-xscript/public-inbox-index5
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";