From 3a4316ccbaa558573deee927299743566a0c24b2 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 18 Jun 2012 15:57:18 -0500 Subject: [PATCH] allow overriding version in this branch too --- Porting/sync-with-cpan | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Porting/sync-with-cpan b/Porting/sync-with-cpan index a5df5cd..f85e50e 100755 --- a/Porting/sync-with-cpan +++ b/Porting/sync-with-cpan @@ -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"; -- 2.7.4