Skip to content

Commit

Permalink
Merge pull request #53 from metacpan/mickey/package
Browse files Browse the repository at this point in the history
Package: fix dist_version, follow a change in api
  • Loading branch information
mickeyn authored Nov 12, 2024
2 parents 4d7b9a4 + db4a74c commit ab9f341
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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

0 comments on commit ab9f341

Please sign in to comment.