diff options
| author | Mike McQuaid | 2012-04-19 15:21:39 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2012-04-24 18:53:33 +1000 |
| commit | 11f382705cb596645d4a1dae5c6bd713f63279c3 (patch) | |
| tree | 4fc88b17433eb10e61b45e115b627e2b976bd07d /Library | |
| parent | f729a0df4434e564bce9bea590b5b3e6fb8c6466 (diff) | |
| download | brew-11f382705cb596645d4a1dae5c6bd713f63279c3.tar.bz2 | |
Add and correctly find erlang bottle.
Fixes Homebrew/homebrew#11780.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 454afb074..82202ce5a 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -214,8 +214,10 @@ class Pathname return $1 if $1 # eg. foobar4.5.1 - /((\d+\.)*\d+)$/.match stem - return $1 if $1 + unless /^erlang-/.match basename + /((\d+\.)*\d+)$/.match stem + return $1 if $1 + end # eg foobar-4.5.0-bin /-((\d+\.)+\d+[abc]?)[-._](bin|dist|stable|src|sources?)$/.match stem |
