Merge pull request #12015 from FnControlOption/issue-11900
install, upgrade: don't print message if formula already installed
This commit is contained in:
commit
1aae34d82d
@ -289,6 +289,8 @@ module Homebrew
|
||||
def install_formula(formula_installer, only_deps: false)
|
||||
f = formula_installer.formula
|
||||
|
||||
formula_installer.prelude
|
||||
|
||||
f.print_tap_action
|
||||
|
||||
if f.linked_keg.directory?
|
||||
@ -316,8 +318,6 @@ module Homebrew
|
||||
end
|
||||
end
|
||||
|
||||
formula_installer.prelude
|
||||
|
||||
kegs.each(&:unlink) if kegs.present?
|
||||
|
||||
formula_installer.install
|
||||
|
||||
@ -165,12 +165,12 @@ module Homebrew
|
||||
if dry_run
|
||||
print_dry_run_dependencies(formula, formula_installer.compute_dependencies)
|
||||
return
|
||||
else
|
||||
print_upgrade_message(formula, formula_installer.options)
|
||||
end
|
||||
|
||||
formula_installer.prelude
|
||||
|
||||
print_upgrade_message(formula, formula_installer.options)
|
||||
|
||||
# first we unlink the currently active keg for this formula otherwise it is
|
||||
# possible for the existing build to interfere with the build we are about to
|
||||
# do! Seriously, it happens!
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user