Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package: fix dist_version, follow a change in api #53

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bin/package.pl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

use MetaCPAN::ES;
use MetaCPAN::Ingest qw<
fix_version
read_02packages_fh
>;

Expand Down Expand Up @@ -40,7 +41,7 @@
file => $file,
author => $distinfo->cpanid,
distribution => $distinfo->dist,
dist_version => $distinfo->version,
dist_version => fix_version( $distinfo->version ),
};

$bulk->update( {
Expand Down
4 changes: 2 additions & 2 deletions lib/MetaCPAN/Contributor.pm
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ sub get_contributors ( $author_name, $release_name ) {
my $check_author = $es->search(
type => 'author',
body => {
query => { term => { email => [ sort keys %want_email ] } },
query => { term => { email => [ sort keys %want_email ] } },
_source => [ 'email', 'pauseid' ],
size => 10,
size => 10,
}
);

Expand Down