Skip to content

Commit

Permalink
Merge pull request #1320 from metacpan/haarg/fix-version-in-package
Browse files Browse the repository at this point in the history
store normalized version in package index
  • Loading branch information
haarg authored Nov 12, 2024
2 parents f106189 + 71228f2 commit 48080b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/MetaCPAN/Script/Package.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use IO::Uncompress::Gunzip ();
use Log::Contextual qw( :log );
use MetaCPAN::ESConfig qw( es_doc_path );
use MetaCPAN::Types::TypeTiny qw( Bool );
use MetaCPAN::Util qw( true false );
use MetaCPAN::Util qw( fix_version true false );

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

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

$bulk->update( {
Expand Down

0 comments on commit 48080b0

Please sign in to comment.