diff options
author | Eric Wong <e@80x24.org> | 2023-03-17 20:31:36 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-03-18 04:17:44 +0000 |
commit | bc6ef574030069c5b438e33fb06cd2680bc86d68 (patch) | |
tree | 39f990b87aad655a9f2ba35a6f4537045a23d2f6 /lib/PublicInbox/LeiMirror.pm | |
parent | 9d2c11e54f3421fd95a0966ac114366808cfb65f (diff) | |
download | public-inbox-bc6ef574030069c5b438e33fb06cd2680bc86d68.tar.gz |
It seems suitable for the config class since globs are a config/option thing.
Diffstat (limited to 'lib/PublicInbox/LeiMirror.pm')
-rw-r--r-- | lib/PublicInbox/LeiMirror.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm index 18932cf4..c8d28eba 100644 --- a/lib/PublicInbox/LeiMirror.pm +++ b/lib/PublicInbox/LeiMirror.pm @@ -14,7 +14,7 @@ use File::Spec (); use Fcntl qw(SEEK_SET O_CREAT O_EXCL O_WRONLY); use Carp qw(croak); use URI; -use PublicInbox::Config; +use PublicInbox::Config qw(glob2re); use PublicInbox::Inbox; use PublicInbox::Git; use PublicInbox::LeiCurl; @@ -983,7 +983,7 @@ sub multi_inbox ($$$) { my @orig = defined($incl // $excl) ? (keys %$v2, @v1) : (); if (defined $incl) { my $re = '(?:'.join('\\z|', map { - $self->{lei}->glob2re($_) // qr/\A\Q$_\E/ + glob2re($_) // qr/\A\Q$_\E/ } @$incl).'\\z)'; my @gone = delete @$v2{grep(!/$re/, keys %$v2)}; delete @$m{map { @$_ } @gone} and $self->{chg}->{manifest} = 1; @@ -992,7 +992,7 @@ sub multi_inbox ($$$) { } if (defined $excl) { my $re = '(?:'.join('\\z|', map { - $self->{lei}->glob2re($_) // qr/\A\Q$_\E/ + glob2re($_) // qr/\A\Q$_\E/ } @$excl).'\\z)'; my @gone = delete @$v2{grep(/$re/, keys %$v2)}; delete @$m{map { @$_ } @gone} and $self->{chg}->{manifest} = 1; |