diff --git a/Library/Homebrew/dev-cmd/unbottled.rb b/Library/Homebrew/dev-cmd/unbottled.rb index 7c0d480c2a..e4245a80a1 100644 --- a/Library/Homebrew/dev-cmd/unbottled.rb +++ b/Library/Homebrew/dev-cmd/unbottled.rb @@ -150,6 +150,10 @@ module Homebrew all_formulae = Formula.all(eval_all: args.eval_all?) end + # Remove deprecated formulae as we do not care if they are unbottled + formulae = Array(formulae).reject(&:deprecated?) if formulae.present? + all_formulae = Array(all_formulae).reject(&:deprecated?) if all_formulae.present? + [formulae, all_formulae, formula_installs] end