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
commitb9b5ff77191588338b9ee22374da1f0faec3c9ea (patch)
treedadb299e2fd428bbd010d3fa4b21f39c9c4b54ab /Library
parent877507dbf9369ac022224db185638a4e636cc0e0 (diff)
downloadhomebrew-b9b5ff77191588338b9ee22374da1f0faec3c9ea.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?