We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5044f96 commit 6ef13c4Copy full SHA for 6ef13c4
lib/MetaCPAN/Script/Release.pm
@@ -161,15 +161,22 @@ sub run {
161
my $d = CPAN::DistnameInfo->new($file);
162
163
if ( $self->skip ) {
164
- my $count = $self->index->type('release')->filter(
165
- {
166
- and => [
167
- { term => { archive => $d->filename } },
168
- { term => { author => $d->cpanid } },
169
- ]
170
- }
171
- )->raw->count;
172
- if ($count) {
+ my $count = $self->es->count(
+ index => $self->index->name,
+ type => 'release',
+ body => {
+ query => {
+ bool => {
+ must => [
+ { term => { archive => $d->filename } },
+ { term => { author => $d->cpanid } },
173
+ ]
174
+ }
175
176
+ },
177
+ );
178
+
179
+ if ( $count->{count} ) {
180
log_info {"Skipping $file"};
181
next;
182
}
0 commit comments