about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiQuery.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/LeiQuery.pm')
-rw-r--r--lib/PublicInbox/LeiQuery.pm5
1 files changed, 4 insertions, 1 deletions
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);
         }