From 705a24871993f9eeac108e38f0e587836e4a087a Mon Sep 17 00:00:00 2001 From: Mike McQuaid <mike@mikemcquaid.com> Date: Sat, 3 Aug 2013 20:01:50 -0700 Subject: [PATCH] versions: remove perforce bottle detection. --- Library/Homebrew/test/test_versions.rb | 5 ----- Library/Homebrew/version.rb | 4 ---- 2 files changed, 9 deletions(-) diff --git a/Library/Homebrew/test/test_versions.rb b/Library/Homebrew/test/test_versions.rb index 1922d82ea3..f14b60f12f 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 64ef24d1e7..6c91bec4a4 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? -- GitLab