aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-01-07 20:26:56 +0000
committerMike McQuaid2013-01-07 20:27:27 +0000
commit7473d2b12f8e39385df3e34a8d4e49655a403d3a (patch)
tree7ab678e6c494e36cc53ba07d75b7edbd3e32054b /Library
parent6641fc4017d2b279ef7ff71fc39a55830d12099a (diff)
downloadbrew-7473d2b12f8e39385df3e34a8d4e49655a403d3a.tar.bz2
Fix local bottle installation with hyphens.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index a150800ba..740577ba7 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -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