]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiUp.pm
config: favor ->get_all when possible
[public-inbox.git] / lib / PublicInbox / LeiUp.pm
index 23c5c606502d4a5c53499296ce4722cea65c553c..63a7f996174f1cb96b3d3618adf537ee6dcb0f01 100644 (file)
@@ -25,10 +25,9 @@ sub lei_up {
        $lei->{opt}->{output} = $lss->{-cfg}->{'lei.q.output'} //
                return $lei->fail("lei.q.output unset in $lss->{-f}");
 
-       my $to_avref = $lss->{-cfg}->can('_array');
        for my $k (qw(only include exclude)) {
-               my $v = $lss->{-cfg}->{"lei.q.$k"} // next;
-               $lei->{opt}->{$k} = $to_avref->($v);
+               my $v = $lss->{-cfg}->get_all("lei.q.$k") // next;
+               $lei->{opt}->{$k} = $v;
        }
        for my $k (qw(external local remote
                        import-remote import-before threads)) {