diff options
| author | Adam Vandenberg | 2010-07-04 10:52:09 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-04 11:02:54 -0700 |
| commit | 7d852f10a78a59ea9ec7985ab81d58fd96c8f353 (patch) | |
| tree | 84fa36c1358ce8c26e7293b932d780c3b44f9fbd /Library/Homebrew/extend | |
| parent | f666addeac9ff99ccf2368aa63cae31a56d2adeb (diff) | |
| download | brew-7d852f10a78a59ea9ec7985ab81d58fd96c8f353.tar.bz2 | |
Update Pathname version checks.
* allow capital 'RC'
* allow 'stable' suffix
Diffstat (limited to 'Library/Homebrew/extend')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 2c3d5a025..1c7dcb2c8 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -131,7 +131,7 @@ class Pathname return $1 if $1 # eg. foobar-4.5.1b - /-((\d+\.)*\d+([abc]|rc\d))$/.match stem + /-((\d+\.)*\d+([abc]|rc|RC\d))$/.match stem return $1 if $1 # eg foobar-4.5.0-beta1 @@ -143,7 +143,7 @@ class Pathname return $1 if $1 # eg foobar-4.5.0-bin - /-((\d+\.)+\d+[abc]?)[-.](bin|src|sources?)$/.match stem + /-((\d+\.)+\d+[abc]?)[-.](bin|stable|src|sources?)$/.match stem return $1 if $1 # eg. otp_src_R13B (this is erlang's style) |
