aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/bottle_version.rb
diff options
context:
space:
mode:
authorMike McQuaid2013-08-03 20:03:40 -0700
committerMike McQuaid2013-08-03 22:27:42 -0700
commit36dcc6ba021e42de53a960eaa9286baddd72abb1 (patch)
treece602267a71c6572e5b8dfd552eb0e0f37514836 /Library/Homebrew/bottle_version.rb
parentee972d943b4ea6650f88b5d093655e137e4e3a73 (diff)
downloadhomebrew-36dcc6ba021e42de53a960eaa9286baddd72abb1.tar.bz2
bottle_versions: add perforce bottle detection.
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