Revert "Add and correctly find erlang bottle."
This reverts commit 146e253856eb3e27b6b7382734fd178c160c1beb.
This commit is contained in:
parent
4138d30428
commit
d69620a55e
@ -23,6 +23,8 @@ def built_bottle? f
|
|||||||
end
|
end
|
||||||
|
|
||||||
def bottle_current? f
|
def bottle_current? f
|
||||||
|
puts Pathname.new(f.bottle_url).version
|
||||||
|
puts f.version
|
||||||
f.bottle_url && f.bottle_sha1 && Pathname.new(f.bottle_url).version == f.version
|
f.bottle_url && f.bottle_sha1 && Pathname.new(f.bottle_url).version == f.version
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -214,10 +214,8 @@ class Pathname
|
|||||||
return $1 if $1
|
return $1 if $1
|
||||||
|
|
||||||
# eg. foobar4.5.1
|
# eg. foobar4.5.1
|
||||||
unless /^erlang-/.match basename
|
/((\d+\.)*\d+)$/.match stem
|
||||||
/((\d+\.)*\d+)$/.match stem
|
return $1 if $1
|
||||||
return $1 if $1
|
|
||||||
end
|
|
||||||
|
|
||||||
# eg foobar-4.5.0-bin
|
# eg foobar-4.5.0-bin
|
||||||
/-((\d+\.)+\d+[abc]?)[-._](bin|dist|stable|src|sources?)$/.match stem
|
/-((\d+\.)+\d+[abc]?)[-._](bin|dist|stable|src|sources?)$/.match stem
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user