diff options
| author | Adam Vandenberg | 2010-07-06 13:12:29 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-06 13:17:50 -0700 |
| commit | 375f8094d379a0cff4deb57944e0dddb3abba95a (patch) | |
| tree | 003cd717eb61e5007b78c8b3cdbd23c198adf678 /Library/Homebrew/extend/pathname.rb | |
| parent | 4ae8029557cc3eba6dc99c1183a02c1a60b002d2 (diff) | |
| download | brew-375f8094d379a0cff4deb57944e0dddb3abba95a.tar.bz2 | |
Add debian style names to version checker.
Diffstat (limited to 'Library/Homebrew/extend/pathname.rb')
| -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 4cda5697d..78734677a 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -146,6 +146,10 @@ class Pathname /-((\d+\.)+\d+[abc]?)[-.](bin|stable|src|sources?)$/.match stem return $1 if $1 + # Debian style eg dash_0.5.5.1.orig.tar.gz + /_((\d+\.)+\d+[abc]?)[.]orig$/.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| |
