Skip to content

Commit

Permalink
Merge pull request #383 from RsrchBoy/topic/resolve-stable-in-download
Browse files Browse the repository at this point in the history
"perlbrew download stable" now works as one expects
  • Loading branch information
gugod committed Feb 27, 2014
2 parents f93717c + 50ebabb commit 09bf56d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/App/perlbrew.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,9 @@ sub run_command_install_multiple {
sub run_command_download {
my ($self, $dist) = @_;

$dist = $self->resolve_stable_version
if $dist && $dist eq 'stable';

my ($dist_version) = $dist =~ /^ (?:perl-?)? (.*) $/xs;

die "\"$dist\" does not look like a perl distribution name. " unless $dist_version =~ /^\d\./;
Expand Down

0 comments on commit 09bf56d

Please sign in to comment.