aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-08-03 20:01:50 -0700
committerMike McQuaid2013-08-03 22:27:42 -0700
commit705a24871993f9eeac108e38f0e587836e4a087a (patch)
treeb1cd09b4673c37c69fd7badef59a314ccbe29854 /Library
parent73547fc750d0692f32a651466f6ba1face88c768 (diff)
downloadbrew-705a24871993f9eeac108e38f0e587836e4a087a.tar.bz2
versions: remove perforce bottle detection.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_versions.rb5
-rw-r--r--Library/Homebrew/version.rb4
2 files changed, 0 insertions, 9 deletions
diff --git a/Library/Homebrew/test/test_versions.rb b/Library/Homebrew/test/test_versions.rb
index 1922d82ea..f14b60f12 100644
--- a/Library/Homebrew/test/test_versions.rb
+++ b/Library/Homebrew/test/test_versions.rb
@@ -303,9 +303,4 @@ class VersionParsingTests < Test::Unit::TestCase
assert_version_detected '2.4c',
'http://loop-aes.sourceforge.net/aespipe/aespipe-v2.4c.tar.bz2'
end
-
- def test_perforce_style
- assert_version_detected '2013.1.610569-x86_64',
- '/usr/local/perforce-2013.1.610569-x86_64.mountain_lion.bottle.tar.gz'
- end
end
diff --git a/Library/Homebrew/version.rb b/Library/Homebrew/version.rb
index 64ef24d1e..6c91bec4a 100644
--- a/Library/Homebrew/version.rb
+++ b/Library/Homebrew/version.rb
@@ -262,10 +262,6 @@ class Version
m = /[-_]([Rr]\d+[AaBb]\d*(?:-\d+)?)/.match(spec_s)
return m.captures.first unless m.nil?
- # e.g. perforce-2013.1.610569-x86_64
- m = /-([\d\.]+-x86(_64)?)/.match(stem)
- return m.captures.first unless m.nil?
-
# e.g. boost_1_39_0
m = /((?:\d+_)+\d+)$/.match(stem)
return m.captures.first.gsub('_', '.') unless m.nil?