This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
allow overriding version in this branch too
authorJesse Luehrs <doy@tozt.net>
Mon, 18 Jun 2012 20:57:18 +0000 (15:57 -0500)
committerJesse Luehrs <doy@tozt.net>
Mon, 18 Jun 2012 22:10:26 +0000 (17:10 -0500)
Porting/sync-with-cpan

index a5df5cd..f85e50e 100755 (executable)
@@ -201,6 +201,10 @@ unless ($tarball) {
                      or die "Cannot find $cpan_mod on CPAN\n";
     chomp $new_line;
     (undef, $new_version, my $new_path) = split ' ', $new_line;
+    if (defined $version) {
+        $new_path =~ s/-$new_version\./-$version\./;
+        $new_version = $version;
+    }
     $new_file = (split '/', $new_path) [-1];
 
     my $url = "http://search.cpan.org/CPAN/authors/id/$new_path";