Skip to content
GitLab
菜单
项目
群组
代码片段
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
KMSCAKKSCFKA AKFACAMADCAS
brew
提交
2c6b979f
未验证
提交
2c6b979f
编辑于
11月 30, 2021
作者:
Carlo Cabrera
提交者:
GitHub
11月 30, 2021
浏览文件
Merge pull request #12487 from carlocab/no-upgrade-source-builds
upgrade: don't upgrade unbottled dependents of upgraded formulae
上级
d9b7c207
b30d821a
变更
1
Show whitespace changes
Inline
Side-by-side
Library/Homebrew/upgrade.rb
浏览文件 @
2c6b979f
...
...
@@ -276,6 +276,20 @@ module Homebrew
installed_formulae
.
flat_map
(
&
:runtime_installed_formula_dependents
)
.
uniq
.
select
(
&
:outdated?
)
# Ensure we never attempt a source build for outdated dependents of upgraded formulae.
outdated_dependents
,
skipped_dependents
=
outdated_dependents
.
partition
do
|
dependent
|
dependent
.
bottled?
&&
dependent
.
deps
.
all?
(
&
:bottled?
)
end
if
skipped_dependents
.
present?
opoo
<<~
EOS
The following dependents of upgraded formulae are outdated but will not
be upgraded because they are not bottled:
#{
skipped_dependents
*
"
\n
"
}
EOS
end
return
if
outdated_dependents
.
blank?
&&
already_broken_dependents
.
blank?
outdated_dependents
-=
installed_formulae
if
dry_run
...
...
编辑
预览
Supports
Markdown
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录