Merge pull request #12497 from carlocab/bottled-dependent-check

upgrade: fix undefined method error
This commit is contained in:
Carlo Cabrera
2021-12-01 01:10:00 +08:00
committed by GitHub
+1 -1
View File
@@ -279,7 +279,7 @@ module Homebrew
# 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?)
dependent.bottled? && dependent.deps.map(&:to_formula).all?(&:bottled?)
end
if skipped_dependents.present?