Skip unlinking if HOMEBREW_NO_INSTALL_UPGRADE

This commit is contained in:
Connor Mann 2021-06-11 13:55:46 -04:00
parent 989e3cd2fa
commit 1ee0c1987e
No known key found for this signature in database
GPG Key ID: 5886083015754F6F

View File

@ -396,7 +396,7 @@ module Homebrew
f.print_tap_action
build_options = f.build
if f.outdated? && !f.head?
if !Homebrew::EnvConfig.no_install_upgrade? && f.outdated? && !f.head?
formulae = [f] + f.old_installed_formulae
version_upgrade = "#{f.linked_version} -> #{f.pkg_version}"