Make local bottle installation more robust.
Use versions to better get hold of the filename.
This commit is contained in:
parent
eec8cc6a12
commit
1bc460403b
@ -394,7 +394,8 @@ class Formula
|
|||||||
install_type = :from_url
|
install_type = :from_url
|
||||||
elsif name.match bottle_regex
|
elsif name.match bottle_regex
|
||||||
bottle_filename = Pathname(name).realpath
|
bottle_filename = Pathname(name).realpath
|
||||||
name = bottle_filename.basename.to_s.rpartition('-').first
|
version = Version.parse(bottle_filename).to_s
|
||||||
|
name = bottle_filename.basename.to_s.rpartition("-#{version}").first
|
||||||
path = Formula.path(name)
|
path = Formula.path(name)
|
||||||
install_type = :from_local_bottle
|
install_type = :from_local_bottle
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user