aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJan Lehnardt2011-08-30 15:58:27 +0200
committerMike McQuaid2011-08-31 08:57:30 +0100
commitee30ee8dbd3ced9ed958cd6ebfe8b0ab3e94b36c (patch)
treeeb6b6a667dff962572a98d3d6799bc0f5a46a58d /Library
parentf4042b272cb318da24e04e6eada5d38a1edf5331 (diff)
downloadhomebrew-ee30ee8dbd3ced9ed958cd6ebfe8b0ab3e94b36c.tar.bz2
fix version parser for upcoming erlang bottle
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/pathname.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 7c2a0bd67..2f23af7e5 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -174,6 +174,11 @@ class Pathname
return match.first if /\d/.match $1
end
+ # erlang bottle style, booya
+ # e.g. erlang-R14B03-bottle.tar.gz
+ /-([^-]+)-bottle$/.match stem
+ return $1 if $1
+
nil
end