Skip to content

Commit 71228f2

Browse files
committed
store normalized version in package index
1 parent f106189 commit 71228f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/MetaCPAN/Script/Package.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use IO::Uncompress::Gunzip ();
77
use Log::Contextual qw( :log );
88
use MetaCPAN::ESConfig qw( es_doc_path );
99
use MetaCPAN::Types::TypeTiny qw( Bool );
10-
use MetaCPAN::Util qw( true false );
10+
use MetaCPAN::Util qw( fix_version true false );
1111

1212
with 'MooseX::Getopt', 'MetaCPAN::Role::Script';
1313

@@ -72,7 +72,7 @@ sub index_packages {
7272
file => $file,
7373
author => $distinfo->cpanid,
7474
distribution => $distinfo->dist,
75-
dist_version => $distinfo->version,
75+
dist_version => fix_version( $distinfo->version ),
7676
};
7777

7878
$bulk->update( {

0 commit comments

Comments
 (0)