X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FCPANPLUS-Dist-Gentoo.git;a=blobdiff_plain;f=lib%2FCPANPLUS%2FDist%2FGentoo%2FMaps.pm;fp=lib%2FCPANPLUS%2FDist%2FGentoo%2FMaps.pm;h=84ede042cb457ff12c42ed3572e594c42020b7d8;hp=774726b390ff46a2fb376b2a3832af5d608cc291;hb=75ae75015ae70863bbce2eaef6c796ea0e1786d3;hpb=961a3a0b428269fd404fc461fb07d9b3f45dd745 diff --git a/lib/CPANPLUS/Dist/Gentoo/Maps.pm b/lib/CPANPLUS/Dist/Gentoo/Maps.pm index 774726b..84ede04 100644 --- a/lib/CPANPLUS/Dist/Gentoo/Maps.pm +++ b/lib/CPANPLUS/Dist/Gentoo/Maps.pm @@ -142,7 +142,7 @@ my $default_but_no_strip_2 = sub { }; my $insert_dot_every = sub { - my ($version, $step) = @_; + my ($version, $step, $strip) = @_; my $is_dev = $version =~ /_/; @@ -160,7 +160,9 @@ my $insert_dot_every = sub { my $pat = sprintf '.{1,%d}', $step || 1; push @parts, $subversion =~ /($pat)/g; - s/^0+([^0]|0\z)/$1/ for @parts; + if ($strip) { + s/^0+([^0]|0\z)/$1/ for @parts; + } $version = join '.', @parts; $version .= '_rc' if $is_dev; @@ -221,13 +223,12 @@ $version_mismatch{$_} = $default_but_ignore_v for qw< $version_mismatch{$_} = $default_but_no_strip_1 for qw< Crypt-RC4 + FLV-AudioExtractor File-Grep MogileFS-Client-Async MogileFS-Network ->; - -$version_mismatch{$_} = $default_but_no_strip_2 for qw< - Net-IMAP-Simple + Test-Command-Simple + Unix-Getrusage >; $version_mismatch{$_} = sub { $insert_dot_every->($_[0], 1) } for qw< @@ -236,29 +237,25 @@ $version_mismatch{$_} = sub { $insert_dot_every->($_[0], 1) } for qw< >; $version_mismatch{$_} = sub { $insert_dot_every->($_[0], 3) } for qw< - POE-Component-IKC + Data-Diver >; $version_mismatch{$_} = $simple_cleanup for qw< - Alien-SDL CGI-SpeedyCGI Class-ISA - Data-Uniqid - ExtUtils-Install - File-Path - Getopt-GUI-Long + CryptX + Data-HexDump Gtk2-Notify HTML-Table I18N-LangTags IO IPC-System-Simple Lab-Measurement - Log-TraceMessages - MusicBrainz-DiscID - Net-IRC Net-Ping + REST-Client SDL SOAP-WSDL + TAP-Parser-SourceHandler-pgTAP TeX-Encode Tie-Simple Time-Piece @@ -266,7 +263,6 @@ $version_mismatch{$_} = $simple_cleanup for qw< >; $version_mismatch{$_} = $simple_and_correct_suffixes for qw< - Gimp XML-Grove >; @@ -364,7 +360,7 @@ Numerical timestamp associated with the revision of the portage tree that was us =cut -sub TIMESTAMP () { 1343034901 } +sub TIMESTAMP () { 1367759701 } =head1 SEE ALSO