From ea9b01fc63f864435370d3bc9cec674ce03e887e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 14 Aug 2021 00:29:44 +0000 Subject: lei: hexdigest mocks account for unwanted headers PublicInbox::Import never imports @UNWANTED_HEADERS, so ensure our mock blob OIDs do the same. This ought to prevent duplicates if the PSGI mboxrd download starts setting "X-Status: F" like "lei q -tt .." --- lib/PublicInbox/LeiQuery.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/LeiQuery.pm') diff --git a/lib/PublicInbox/LeiQuery.pm b/lib/PublicInbox/LeiQuery.pm index 37b660f9..962ad49e 100644 --- a/lib/PublicInbox/LeiQuery.pm +++ b/lib/PublicInbox/LeiQuery.pm @@ -73,7 +73,7 @@ sub lxs_prepare { my @only = @{$opt->{only} // []}; # --local is enabled by default unless --only is used # we'll allow "--only $LOCATION --local" - my $sto = $self->_lei_store(1); # FIXME: should not create + my $sto = $self->_lei_store(1); $self->{lse} = $sto->search; if ($opt->{'local'} //= scalar(@only) ? 0 : 1) { $lxs->prepare_external($self->{lse}); -- cgit v1.2.3-24-ge0c7