aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/bottle_version.rb
diff options
context:
space:
mode:
authorMike McQuaid2014-03-17 10:35:53 +0000
committerMike McQuaid2014-03-17 10:35:53 +0000
commit9df75f8650f4214f37f5918b139167f9704af7f6 (patch)
tree99a70cc16928d5a891edcb3ecaf1aec14f588e89 /Library/Homebrew/bottle_version.rb
parentabca7211966b57097d21901647e2b2ebcfc38e87 (diff)
downloadhomebrew-9df75f8650f4214f37f5918b139167f9704af7f6.tar.bz2
bottle_version: support lz4 style.
Diffstat (limited to 'Library/Homebrew/bottle_version.rb')
-rw-r--r--Library/Homebrew/bottle_version.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/bottle_version.rb b/Library/Homebrew/bottle_version.rb
index 615980d83..acf48d869 100644
--- a/Library/Homebrew/bottle_version.rb
+++ b/Library/Homebrew/bottle_version.rb
@@ -8,7 +8,8 @@ class BottleVersion < Version
return m.captures.first unless m.nil?
# e.g. x264-r2197.4.mavericks.bottle.tar.gz
- m = /(r\d+\.\d)/.match(stem)
+ # e.g. lz4-r114.mavericks.bottle.tar.gz
+ m = /(r\d+\.?\d*)/.match(stem)
return m.captures.first unless m.nil?
# e.g. ssh-copy-id-6.2p2.mountain_lion.bottle.tar.gz