about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiSucks.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-12 08:42:18 +0000
committerEric Wong <e@80x24.org>2021-09-12 08:46:27 +0000
commitfc7b32789a8d223e6550d9315216833fa602bd22 (patch)
tree4025f14e78b0b329dc80e14d4d4dd94b8e223f80 /lib/PublicInbox/LeiSucks.pm
parenta2455c390a80a95b0e36d42a6018a756e301519f (diff)
downloadpublic-inbox-fc7b32789a8d223e6550d9315216833fa602bd22.tar.gz
And try to improve the message about Inline::C while we're at
it, since Socket::Msghdr isn't widely-packaged, yet.
Diffstat (limited to 'lib/PublicInbox/LeiSucks.pm')
-rw-r--r--lib/PublicInbox/LeiSucks.pm4
1 files changed, 2 insertions, 2 deletions
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($_)->();