Skip to content

Commit ab9f341

Browse files
authored
Merge pull request #53 from metacpan/mickey/package
Package: fix dist_version, follow a change in api
2 parents 4d7b9a4 + db4a74c commit ab9f341

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

bin/package.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
use MetaCPAN::ES;
1010
use MetaCPAN::Ingest qw<
11+
fix_version
1112
read_02packages_fh
1213
>;
1314

@@ -40,7 +41,7 @@
4041
file => $file,
4142
author => $distinfo->cpanid,
4243
distribution => $distinfo->dist,
43-
dist_version => $distinfo->version,
44+
dist_version => fix_version( $distinfo->version ),
4445
};
4546

4647
$bulk->update( {

lib/MetaCPAN/Contributor.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ sub get_contributors ( $author_name, $release_name ) {
197197
my $check_author = $es->search(
198198
type => 'author',
199199
body => {
200-
query => { term => { email => [ sort keys %want_email ] } },
200+
query => { term => { email => [ sort keys %want_email ] } },
201201
_source => [ 'email', 'pauseid' ],
202-
size => 10,
202+
size => 10,
203203
}
204204
);
205205

0 commit comments

Comments
 (0)