diff options
| author | Mike McQuaid | 2011-06-21 18:40:07 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2011-06-21 19:04:17 +0100 |
| commit | 23769d62add490c7c4c0ccead0f5497dc4beb59b (patch) | |
| tree | 934c75cc8c56d92c29d670551ab6daec5f572956 /Library/Homebrew/extend | |
| parent | c5923168d6f7f3360ff3e72727ce4610e8b72f3d (diff) | |
| download | brew-23769d62add490c7c4c0ccead0f5497dc4beb59b.tar.bz2 | |
Fix brew bottle versioning.
Diffstat (limited to 'Library/Homebrew/extend')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index c0b91c5b9..0986d04f7 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -164,6 +164,10 @@ class Pathname /_((\d+\.)+\d+[abc]?)[.]orig$/.match stem return $1 if $1 + # brew bottle style e.g. qt-4.7.3-bottle.tar.gz + /-((\d+\.)*\d+)-bottle$/.match stem + return $1 if $1 + # eg. otp_src_R13B (this is erlang's style) # eg. astyle_1.23_macosx.tar.gz stem.scan(/_([^_]+)/) do |match| |
