From: Aaron Crane Date: Wed, 19 Mar 2014 16:56:09 +0000 (+0000) Subject: Porting/sync-with-cpan: allow "-TRIAL" version numbers X-Git-Tag: upstream/5.20.0~196 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48414424a7e7693e51c809e8bb1ea9e55e5436c8;p=platform%2Fupstream%2Fperl.git Porting/sync-with-cpan: allow "-TRIAL" version numbers --- 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";