aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/bottle_version.rb
diff options
context:
space:
mode:
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 6ad8ebeb7..9da0bf3e3 100644
--- a/Library/Homebrew/bottle_version.rb
+++ b/Library/Homebrew/bottle_version.rb
@@ -3,6 +3,10 @@ class BottleVersion < Version
spec = Pathname.new(spec) unless spec.is_a? Pathname
stem = spec.stem
+ # e.g. perforce-2013.1.610569-x86_64
+ m = /-([\d\.]+-x86(_64)?)/.match(stem)
+ return m.captures.first unless m.nil?
+
super
end
end