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
+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?