X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FLeiQuery.pm;h=c630d62809a38fa1184cdcb71b7f8cd0e4d87b80;hb=fbc11e24a72f41b0ed7ead30d199288a4d674be4;hp=b57d1cc56aa70327dfccd19ab828a9642e3dfc73;hpb=6fd748af8d4792d8cb857c3d2ec132ec3cca9bb8;p=public-inbox.git diff --git a/lib/PublicInbox/LeiQuery.pm b/lib/PublicInbox/LeiQuery.pm index b57d1cc5..c630d628 100644 --- a/lib/PublicInbox/LeiQuery.pm +++ b/lib/PublicInbox/LeiQuery.pm @@ -51,7 +51,10 @@ sub lei_q { # we'll allow "--only $LOCATION --local" my $sto = $self->_lei_store(1); my $lse = $sto->search; - $sto->write_prepare($self) if $opt->{'import-remote'} //= 1; + if (($opt->{'import-remote'} //= 1) | + ($opt->{'import-augment'} //= 1)) { + $sto->write_prepare($self); + } if ($opt->{'local'} //= scalar(@only) ? 0 : 1) { $lxs->prepare_external($lse); }