From d6571ecfae74ed51b8704ea32471a26d552c9837 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Sun, 27 Oct 2024 12:11:57 +0100 Subject: [PATCH] ignore system indexes when deleting for testing --- lib/MetaCPAN/Script/Mapping.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MetaCPAN/Script/Mapping.pm b/lib/MetaCPAN/Script/Mapping.pm index 3ae24e885..d5c35deda 100644 --- a/lib/MetaCPAN/Script/Mapping.pm +++ b/lib/MetaCPAN/Script/Mapping.pm @@ -240,7 +240,7 @@ sub delete_all { || $runtime_environment eq 'testing'; if ($is_development) { - foreach my $name ( keys %{ $self->indices_info } ) { + foreach my $name ( grep !/\A\./, keys %{ $self->indices_info } ) { $self->_delete_index($name); } }