From 11652a7a625766ffe1bb243fb000b007270e422d Mon Sep 17 00:00:00 2001 From: botantony Date: Sun, 27 Apr 2025 22:18:43 +0200 Subject: [PATCH] tap: exclude deprecated and disabled packages from autobump list Signed-off-by: botantony --- Library/Homebrew/tap.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index bc1cc8ad5e..05bb1d2d37 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -985,16 +985,16 @@ class Tap # Array with autobump names sig { returns(T::Array[String]) } def autobump - @autobump ||= if core_cask_tap? - Homebrew::API::Cask.all_casks.select do |_, cask| - cask["autobump"] == true && !cask["skip_livecheck"] - end.keys + autobump_packages = if core_cask_tap? + Homebrew::API::Cask.all_casks else - Homebrew::API::Formula.all_formulae.select do |_, formula| - formula["autobump"] == true && !formula["skip_livecheck"] - end.keys + Homebrew::API::Formula.all_formulae end + @autobump ||= autobump_packages.select do |_, p| + p["autobump"] == true && !p["skip_livecheck"] && !(p["deprecated"] || p["disabled"]) + end.keys + if @autobump.empty? @autobump = if (autobump_file = path/HOMEBREW_TAP_AUTOBUMP_FILE).file? autobump_file.readlines(chomp: true)