diff options
| author | Jan Lehnardt | 2011-08-30 15:58:27 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2011-08-31 08:57:30 +0100 |
| commit | ee30ee8dbd3ced9ed958cd6ebfe8b0ab3e94b36c (patch) | |
| tree | eb6b6a667dff962572a98d3d6799bc0f5a46a58d | |
| parent | f4042b272cb318da24e04e6eada5d38a1edf5331 (diff) | |
| download | homebrew-ee30ee8dbd3ced9ed958cd6ebfe8b0ab3e94b36c.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 |
