mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-15 19:56:59 +08:00
Add and correctly find erlang bottle.
This commit is contained in:
parent
40370e05bd
commit
dcad1ae49f
@ -22,8 +22,6 @@ def built_bottle? f
|
||||
end
|
||||
|
||||
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
|
||||
end
|
||||
|
||||
|
@ -213,8 +213,10 @@ class Pathname
|
||||
return $1 if $1
|
||||
|
||||
# eg. foobar4.5.1
|
||||
unless /^erlang-/.match basename
|
||||
/((\d+\.)*\d+)$/.match stem
|
||||
return $1 if $1
|
||||
end
|
||||
|
||||
# eg foobar-4.5.0-bin
|
||||
/-((\d+\.)+\d+[abc]?)[-._](bin|dist|stable|src|sources?)$/.match stem
|
||||
|
Loading…
x
Reference in New Issue
Block a user