Permalink
Browse files

refactor 'versionswitcher.sh'

  • Loading branch information...
1 parent c7f1fe6 commit 54d048a0dd5be11bdf5f2b9561f9afcf8fb583f1 @kwatch committed Feb 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/versionswitcher.sh
@@ -351,9 +351,9 @@ __vs_installable_versions() {
push @{$d{$ver}}, (exists($verdict{$v}) ? "$patch*" : $patch);
}
}
- sub norm { join ".", map { sprintf("%03d", $_) } split(/\./, $_[0]) }
+ #sub norm { join ".", map { sprintf("%03d", $_) } split(/\./, $_[0]) }
for (sort keys %d) {
- @arr = sort {$a<=>$b} @{$d{$_}};
+ @arr = sort {$a<=>$b} @{$d{$_}};
if ($#arr) { print $_, $sep, "{", join(",", @arr), "}\n"; }
elsif ($arr[0] eq "*") { print $_, "*\n"; }
elsif (length($arr[0])) { print $_, $sep, $arr[0], "\n"; }

0 comments on commit 54d048a

Please sign in to comment.