From fc7b32789a8d223e6550d9315216833fa602bd22 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 12 Sep 2021 08:42:18 +0000 Subject: lei sucks: allow it to work without SQLite And try to improve the message about Inline::C while we're at it, since Socket::Msghdr isn't widely-packaged, yet. --- lib/PublicInbox/LeiSucks.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/LeiSucks.pm') diff --git a/lib/PublicInbox/LeiSucks.pm b/lib/PublicInbox/LeiSucks.pm index 3e945d0b..e832f95e 100644 --- a/lib/PublicInbox/LeiSucks.pm +++ b/lib/PublicInbox/LeiSucks.pm @@ -11,7 +11,6 @@ use Digest::SHA (); use Config; use POSIX (); use PublicInbox::Config; -use PublicInbox::Search; sub lei_sucks { my ($lei, @argv) = @_; @@ -41,7 +40,8 @@ sub lei_sucks { } else { push @out, "Unable to load DBI / DBD::SQLite: $@\n"; } - if (PublicInbox::Search::load_xapian()) { + if (eval { require PublicInbox::Search } && + PublicInbox::Search::load_xapian()) { push @out, 'Xapian '. join('.', map { $PublicInbox::Search::Xap->can($_)->(); -- cgit v1.2.3-24-ge0c7