X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FLeiExternal.pm;h=e7693e09a7de67a427742590707926352e54aed0;hb=44c1e25436c5a4cc7b11a159aac05cfc60c37c17;hp=5b5f08d178d0f04d68455b0ad0964c0849c2cccb;hpb=00d6a4a403e7b36e91c68f8a47252b5d6db0d577;p=public-inbox.git diff --git a/lib/PublicInbox/LeiExternal.pm b/lib/PublicInbox/LeiExternal.pm index 5b5f08d1..e7693e09 100644 --- a/lib/PublicInbox/LeiExternal.pm +++ b/lib/PublicInbox/LeiExternal.pm @@ -69,9 +69,11 @@ sub lei_forget_external { my ($self, @locations) = @_; my $cfg = $self->_lei_cfg(1); my $quiet = $self->{opt}->{quiet}; + my %seen; for my $loc (@locations) { my (@unset, @not_found); for my $l ($loc, _canonicalize($loc)) { + next if $seen{$l}++; my $key = "external.$l.boost"; delete($cfg->{$key}); $self->_config('--unset', $key);