From 7af47fb992e047f149b0b36c37e3a4984d34e139 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 23 Apr 2021 01:45:12 +0000 Subject: lei: saved searches support --dedupe= This is less surprising in case users are used to using --dedupe= without --save. --- lib/PublicInbox/LeiUp.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/PublicInbox/LeiUp.pm') diff --git a/lib/PublicInbox/LeiUp.pm b/lib/PublicInbox/LeiUp.pm index 0fb9698b..f4ff070b 100644 --- a/lib/PublicInbox/LeiUp.pm +++ b/lib/PublicInbox/LeiUp.pm @@ -25,6 +25,10 @@ sub up1 ($$) { my $o = $lei->{opt}->{output} = $lss->{-cfg}->{'lei.q.output'} // return $lei->fail("lei.q.output unset in $f"); ref($o) and return $lei->fail("multiple values of lei.q.output in $f"); + if (defined(my $dd = $lss->{-cfg}->{'lei.q.dedupe'})) { + $lss->translate_dedupe($lei, $dd) or return; + $lei->{opt}->{dedupe} = $dd; + } for my $k (qw(only include exclude)) { my $v = $lss->{-cfg}->get_all("lei.q.$k") // next; $lei->{opt}->{$k} = $v; -- cgit v1.2.3-24-ge0c7