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
commit6de683c4b26ab3424f0260114a25ce151feb534f (patch)
tree8203cd8c949459268d2f3f16186eb5b0aa3c2b09 /Library
parent9d915ede97b7c7c6073fe98f5eab86ccdee9dd1f (diff)
downloadhomebrew-6de683c4b26ab3424f0260114a25ce151feb534f.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