Skip to content
Snippets Groups Projects
Commit cf4e7e59 authored by Jack Nagel's avatar Jack Nagel
Browse files

reinstall: fix incorrect use of Formula.canonical_name

Fixes Homebrew/homebrew#27117.
parent 51bec382
No related branches found
No related tags found
No related merge requests found
......@@ -18,12 +18,11 @@ module Homebrew extend self
ARGV << '--build-bottle'
end
canonical_name = Formula.canonical_name(name)
formula = Formula.factory(canonical_name)
formula = Formulary.factory(name)
begin
oh1 "Reinstalling #{name} #{ARGV.options_only*' '}"
opt_link = HOMEBREW_PREFIX/'opt'/canonical_name
opt_link = formula.opt_prefix
if opt_link.exist?
keg = Keg.new(opt_link.realpath)
backup keg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment