From 71228f204a0ca7e2758ab2b9ef8870ccdab3bf27 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Tue, 12 Nov 2024 07:51:16 +0100 Subject: [PATCH] store normalized version in package index --- lib/MetaCPAN/Script/Package.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MetaCPAN/Script/Package.pm b/lib/MetaCPAN/Script/Package.pm index 9e8a1982b..8fa72336a 100644 --- a/lib/MetaCPAN/Script/Package.pm +++ b/lib/MetaCPAN/Script/Package.pm @@ -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'; @@ -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( {