Browse files

deal with build post-5.14 RC release from git.

Error message looks like:

    Use of uninitialized value $dist_name in string eq at ~/perl5/perlbrew/bin/perlbrew line 458.
  • Loading branch information...
1 parent 31f5bf0 commit 70a677274f708095d6623db4018b62775baa3a5f @gugod gugod committed May 1, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/App/perlbrew.pm
  2. +1 −1 perlbrew
View
2 lib/App/perlbrew.pm
@@ -433,7 +433,7 @@ HELP
if (-d $dist && !$dist_name || !$dist_version) {
if (-d "$dist/.git") {
- if (`git describe` =~ /v((5\.\d+\.\d+)(-\d+-\w+)?)$/) {
+ if (`git describe` =~ /v((5\.\d+\.\d+(?:-RC\d)?)(-\d+-\w+)?)$/) {
$dist_name = "perl";
$dist_git_describe = "v$1";
$dist_version = $2;
View
2 perlbrew
@@ -435,7 +435,7 @@ HELP
if (-d $dist && !$dist_name || !$dist_version) {
if (-d "$dist/.git") {
- if (`git describe` =~ /v((5\.\d+\.\d+)(-\d+-\w+)?)$/) {
+ if (`git describe` =~ /v((5\.\d+\.\d+(?:-RC\d)?)(-\d+-\w+)?)$/) {
$dist_name = "perl";
$dist_git_describe = "v$1";
$dist_version = $2;

0 comments on commit 70a6772

Please sign in to comment.