X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FLeiQuery.pm;h=84996e7e2f4b4e3d8985917f224eb56a67824eff;hb=97caa1fe259cd6904573f36e0ac078a269b6ec5f;hp=148e8524d6d97b716885ba8e0eff59d693b14225;hpb=d39ff2cf4400b87bf6f51d7fe9f4b0e2a72bf679;p=public-inbox.git diff --git a/lib/PublicInbox/LeiQuery.pm b/lib/PublicInbox/LeiQuery.pm index 148e8524..84996e7e 100644 --- a/lib/PublicInbox/LeiQuery.pm +++ b/lib/PublicInbox/LeiQuery.pm @@ -50,11 +50,11 @@ sub lei_q { # --local is enabled by default unless --only is used # we'll allow "--only $LOCATION --local" my $sto = $self->_lei_store(1); - my $lse = $sto->search; if (($opt->{'import-remote'} //= 1) | (($opt->{'import-before'} //= \1) ? 1 : 0)) { $sto->write_prepare($self); } + my $lse = $sto->search; if ($opt->{'local'} //= scalar(@only) ? 0 : 1) { $lxs->prepare_external($lse); }