aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorCyril Scetbon2012-12-31 11:18:38 +0100
committerMike McQuaid2013-01-01 17:30:52 +0000
commit3c333f480a32294fc368faf43d4f04e264e142b0 (patch)
tree742dd48390379b66a4b2f350a6ed9cb2c6ac4dd7 /Library/Homebrew
parent87cf30c9fe5c8c655b490ffa1a81428c4feddcfa (diff)
downloadhomebrew-3c333f480a32294fc368faf43d4f04e264e142b0.tar.bz2
Add Apache version style.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/version.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/version.rb b/Library/Homebrew/version.rb
index 75233c16c..d4c5af62f 100644
--- a/Library/Homebrew/version.rb
+++ b/Library/Homebrew/version.rb
@@ -137,7 +137,7 @@ class Version
# e.g. foobar-4.5.1-1
# e.g. ruby-1.9.1-p243
- m = /-((\d+\.)*\d\.\d+-(p|rc|RC)?\d+)$/.match(stem)
+ m = /-((\d+\.)*\d\.\d+-(p|rc|RC)?\d+)(?:[-._](?:bin|dist|stable|src|sources))?$/.match(stem)
return m.captures.first unless m.nil?
# e.g. lame-398-1