Skip to content

Commit

Permalink
fix '__vs_installable_versions()' to retrieve patch number from versi…
Browse files Browse the repository at this point in the history
…on string correctly
  • Loading branch information
kwatch committed Dec 19, 2015
1 parent 37f2c81 commit 617733f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/versionswitcher.sh
Expand Up @@ -381,9 +381,9 @@ __vs_installable_versions() {
while (<>) {
#push @{$d{$1}}, length($2) ? $2 : $none if /$rexp/;
if (/$rexp/) {
my $ver = $1;
my ($ver, $patch) = ($1, $2);
my $none_ = $ver =~ m/(rc|beta)\d$/ ? "" : $none; # for Go
my $patch = length($2) ? $2 : $none_;
$patch = $none_ unless length($patch);
my $v = length($patch) ? "$ver$sep$patch" : $ver;
push @{$d{$ver}}, (exists($verdict{$v}) ? "$patch*" : $patch);
}
Expand Down

0 comments on commit 617733f

Please sign in to comment.