In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/48414424a7e7693e51c809e8bb1ea9e55e5436c8?hp=f0fe019a81bffdc6f23c6c00d5fa100df21f8428>
- Log ----------------------------------------------------------------- commit 48414424a7e7693e51c809e8bb1ea9e55e5436c8 Author: Aaron Crane <a...@cpan.org> Date: Wed Mar 19 16:56:09 2014 +0000 Porting/sync-with-cpan: allow "-TRIAL" version numbers ----------------------------------------------------------------------- Summary of changes: Porting/sync-with-cpan | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Porting/sync-with-cpan b/Porting/sync-with-cpan index 795fe1b..d436703 100755 --- a/Porting/sync-with-cpan +++ b/Porting/sync-with-cpan @@ -218,7 +218,7 @@ chdir "cpan"; my $pkg_dir = $files[0]; $pkg_dir =~ s!.*/!!; -my ($old_version) = $distribution =~ /-([0-9.]+)\.tar\.gz/; +my ($old_version) = $distribution =~ /-([0-9.]+(?:-TRIAL)?)\.tar\.gz/; my $o_module = $module; if ($cpan_mod =~ /-/ && $cpan_mod !~ /::/) { @@ -267,7 +267,7 @@ unless ($tarball) { } else { $new_file = $tarball; - $new_version = $version // ($new_file =~ /-([0-9._]+)\.tar\.gz/) [0]; + $new_version = $version // ($new_file =~ /-([0-9._]+(?:-TRIAL)?)\.tar\.gz/) [0]; } my $old_dir = "$pkg_dir-$old_version"; -- Perl5 Master Repository