diff options
| author | Mike McQuaid | 2013-01-07 20:26:56 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-01-07 20:27:27 +0000 |
| commit | 6de683c4b26ab3424f0260114a25ce151feb534f (patch) | |
| tree | 8203cd8c949459268d2f3f16186eb5b0aa3c2b09 /Library | |
| parent | 9d915ede97b7c7c6073fe98f5eab86ccdee9dd1f (diff) | |
| download | homebrew-6de683c4b26ab3424f0260114a25ce151feb534f.tar.bz2 | |
Fix local bottle installation with hyphens.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 |
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 |
