From 651cef6f6be613af41d23bea0e1815fcca415ffa Mon Sep 17 00:00:00 2001 From: Michka Popoff Date: Mon, 16 Oct 2023 22:20:48 +0200 Subject: [PATCH] brew unbottled: skip deprecated formulae We are not interested in bottling them --- Library/Homebrew/dev-cmd/unbottled.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/dev-cmd/unbottled.rb b/Library/Homebrew/dev-cmd/unbottled.rb index 0d3e6201f9..b628f245bb 100644 --- a/Library/Homebrew/dev-cmd/unbottled.rb +++ b/Library/Homebrew/dev-cmd/unbottled.rb @@ -137,6 +137,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 = formulae&.select {|formula| !(formula.deprecated?)} + all_formulae = all_formulae&.select {|formula| !(formula.deprecated?)} + [formulae, all_formulae, formula_installs] end