Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
2c6b979f
Unverified
Commit
2c6b979f
authored
Nov 30, 2021
by
Carlo Cabrera
Committed by
GitHub
Nov 30, 2021
Browse files
Merge pull request #12487 from carlocab/no-upgrade-source-builds
upgrade: don't upgrade unbottled dependents of upgraded formulae
parents
d9b7c207
b30d821a
Changes
1
Show whitespace changes
Inline
Side-by-side
Library/Homebrew/upgrade.rb
View file @
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment