diff options
| author | Jan Lehnardt | 2011-08-30 15:58:27 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2011-08-31 08:57:30 +0100 |
| commit | 27fd2d7a7024b8afcf297e6e3aa3a930cad992c7 (patch) | |
| tree | 0199bb1614cdcb5e9d88696c0036400490a06c45 | |
| parent | 2e0a2cb1753edbd5ea1b5268c15ee4bba5693de1 (diff) | |
| download | brew-27fd2d7a7024b8afcf297e6e3aa3a930cad992c7.tar.bz2 | |
fix version parser for upcoming erlang bottle
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 5 |
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 |
