diff options
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 |
