diff options
author | Aaron Crane <arc@cpan.org> | 2014-03-19 16:56:09 +0000 |
---|---|---|
committer | Aaron Crane <arc@cpan.org> | 2014-03-19 16:56:09 +0000 |
commit | 48414424a7e7693e51c809e8bb1ea9e55e5436c8 (patch) | |
tree | 1168afc34e7c21f2a7d229f61534166f0be9bc3d /Porting/sync-with-cpan | |
parent | f0fe019a81bffdc6f23c6c00d5fa100df21f8428 (diff) | |
download | perl-48414424a7e7693e51c809e8bb1ea9e55e5436c8.tar.gz |
Porting/sync-with-cpan: allow "-TRIAL" version numbers
Diffstat (limited to 'Porting/sync-with-cpan')
-rwxr-xr-x | Porting/sync-with-cpan | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Porting/sync-with-cpan b/Porting/sync-with-cpan index 795fe1b59f..d436703cab 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"; |