]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiQuery.pm
lei up: support --all=local
[public-inbox.git] / lib / PublicInbox / LeiQuery.pm
index 385ba0a9b4cad38af59a23913b703344eb05339f..4099b26c85ce87e4b0005f98008987d2e518d72b 100644 (file)
@@ -14,6 +14,7 @@ sub prep_ext { # externals_each callback
 
 sub _start_query { # used by "lei q" and "lei up"
        my ($self) = @_;
+       require PublicInbox::LeiOverview;
        PublicInbox::LeiOverview->new($self) or return;
        my $opt = $self->{opt};
        my ($xj, $mj) = split(/,/, $opt->{jobs} // '');
@@ -117,7 +118,6 @@ sub lxs_prepare {
 # the main "lei q SEARCH_TERMS" method
 sub lei_q {
        my ($self, @argv) = @_;
-       require PublicInbox::LeiOverview;
        PublicInbox::Config->json; # preload before forking
        my $lxs = lxs_prepare($self) or return;
        $self->ale->refresh_externals($lxs);