upgrade: fix undefined method error

Fixes Homebrew/discussions#2567.
This commit is contained in:
Carlo Cabrera 2021-12-01 00:42:06 +08:00
parent a285ef6eac
commit ea72daf7bb
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

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?