Fix local bottle installation with hyphens.

This commit is contained in:
Mike McQuaid 2013-01-07 20:26:56 +00:00
parent 6641fc4017
commit 7473d2b12f

View File

@ -357,7 +357,7 @@ class Formula
install_type = :from_url
elsif name.match bottle_regex
bottle_filename = Pathname(name).realpath
name = name.split('-').first
name = bottle_filename.basename.to_s.rpartition('-').first
path = Formula.path(name)
install_type = :from_local_bottle
else