aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/bottle_version.rb
diff options
context:
space:
mode:
authorMike McQuaid2014-05-01 17:18:44 +0100
committerMike McQuaid2014-05-06 19:34:01 +0100
commit8732d683358aa41a048fc9ce9caa0030835d6b65 (patch)
treec3054e6d53169621f42ce811af962881bbe90bab /Library/Homebrew/bottle_version.rb
parent328c9a48f67a066070c3813add345d321e646785 (diff)
downloadhomebrew-8732d683358aa41a048fc9ce9caa0030835d6b65.tar.bz2
bottle_version: parse disco bottle versions.
Diffstat (limited to 'Library/Homebrew/bottle_version.rb')
-rw-r--r--Library/Homebrew/bottle_version.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/bottle_version.rb b/Library/Homebrew/bottle_version.rb
index 6d270db03..bf1b0a1e1 100644
--- a/Library/Homebrew/bottle_version.rb
+++ b/Library/Homebrew/bottle_version.rb
@@ -21,6 +21,10 @@ class BottleVersion < Version
m = /-(\d+\.(\d)+(p(\d)+)?)/.match(stem)
return m.captures.first unless m.nil?
+ # e.g. 0_5_0 from disco-0_5_0.mavericks.bottle.tar.gz
+ m = /-(\d+_\d+(_\d+)+)/.match(stem)
+ return m.captures.first unless m.nil?
+
super
end
end