tap: exclude deprecated and disabled packages from autobump list
Signed-off-by: botantony <antonsm21@gmail.com>
This commit is contained in:
parent
18296808a2
commit
11652a7a62
@ -985,16 +985,16 @@ class Tap
|
|||||||
# Array with autobump names
|
# Array with autobump names
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def autobump
|
def autobump
|
||||||
@autobump ||= if core_cask_tap?
|
autobump_packages = if core_cask_tap?
|
||||||
Homebrew::API::Cask.all_casks.select do |_, cask|
|
Homebrew::API::Cask.all_casks
|
||||||
cask["autobump"] == true && !cask["skip_livecheck"]
|
|
||||||
end.keys
|
|
||||||
else
|
else
|
||||||
Homebrew::API::Formula.all_formulae.select do |_, formula|
|
Homebrew::API::Formula.all_formulae
|
||||||
formula["autobump"] == true && !formula["skip_livecheck"]
|
|
||||||
end.keys
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@autobump ||= autobump_packages.select do |_, p|
|
||||||
|
p["autobump"] == true && !p["skip_livecheck"] && !(p["deprecated"] || p["disabled"])
|
||||||
|
end.keys
|
||||||
|
|
||||||
if @autobump.empty?
|
if @autobump.empty?
|
||||||
@autobump = if (autobump_file = path/HOMEBREW_TAP_AUTOBUMP_FILE).file?
|
@autobump = if (autobump_file = path/HOMEBREW_TAP_AUTOBUMP_FILE).file?
|
||||||
autobump_file.readlines(chomp: true)
|
autobump_file.readlines(chomp: true)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user