未验证 提交 e6b066a3 编辑于 作者: Mike McQuaid's avatar Mike McQuaid 提交者: GitHub
浏览文件

Merge pull request #8108 from mistydemeo/upgrade_avoid_unrequested_casks

upgrade: avoid upgrading unrequested casks
......@@ -64,9 +64,14 @@ module Homebrew
args = upgrade_args.parse
formulae, casks = args.resolved_formulae_casks
upgrade_outdated_formulae(formulae)
upgrade_outdated_casks(casks)
# If one or more formulae are specified, but no casks were
# specified, we want to make note of that so we don't
# try to upgrade all outdated casks.
named_formulae_specified = !formulae.empty? && casks.empty?
named_casks_specified = !casks.empty? && formulae.empty?
upgrade_outdated_formulae(formulae) unless named_casks_specified
upgrade_outdated_casks(casks) unless named_formulae_specified
end
def upgrade_outdated_formulae(formulae)
......
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册