Merge pull request #16116 from iMichka/dep2

brew unbottled: skip deprecated
This commit is contained in:
Mike McQuaid 2023-10-18 09:08:27 +01:00 committed by GitHub
commit ab16b59ee7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,6 +150,10 @@ module Homebrew
all_formulae = Formula.all(eval_all: args.eval_all?) all_formulae = Formula.all(eval_all: args.eval_all?)
end 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] [formulae, all_formulae, formula_installs]
end end