Update Library/Homebrew/cmd/install.rb

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Connor Mann 2021-06-14 08:36:23 -04:00 committed by GitHub
parent beb68dca29
commit 1b1fa3fed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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