bottle_versions: add ssh_copy_id bottle detection.
This commit is contained in:
parent
b507536f80
commit
98c3d39e65
@ -7,6 +7,10 @@ class BottleVersion < Version
|
|||||||
m = /-([\d\.]+-x86(_64)?)/.match(stem)
|
m = /-([\d\.]+-x86(_64)?)/.match(stem)
|
||||||
return m.captures.first unless m.nil?
|
return m.captures.first unless m.nil?
|
||||||
|
|
||||||
|
# e.g. ssh-copy-id-6.2p2.bottle.tar.gz
|
||||||
|
m = /(\d\.(\d)+(p(\d)+)?)/.match(stem)
|
||||||
|
return m.captures.first unless m.nil?
|
||||||
|
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -10,4 +10,9 @@ class BottleVersionParsingTests < Test::Unit::TestCase
|
|||||||
assert_version_detected '2013.1.610569-x86_64',
|
assert_version_detected '2013.1.610569-x86_64',
|
||||||
'/usr/local/perforce-2013.1.610569-x86_64.mountain_lion.bottle.tar.gz'
|
'/usr/local/perforce-2013.1.610569-x86_64.mountain_lion.bottle.tar.gz'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_ssh_copy_id_style
|
||||||
|
assert_version_detected '6.2p2',
|
||||||
|
'/usr/local/ssh-copy-id-6.2p2.mountain_lion.bottle.tar.gz'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user