Skip to content
Snippets Groups Projects
Commit 705a2487 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

versions: remove perforce bottle detection.

parent 73547fc7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment