Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions Library/Homebrew/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -985,19 +985,21 @@ def self.tap_migration_oldnames(current_tap, name_or_token)
# Array with autobump names
sig { returns(T::Array[String]) }
def autobump
autobump_packages = if core_cask_tap?
Homebrew::API::Cask.all_casks
elsif core_tap?
Homebrew::API::Formula.all_formulae
else
{}
end

@autobump ||= autobump_packages.select do |_, p|
p["autobump"] == true && !p["skip_livecheck"] && !(p["deprecated"] || p["disabled"])
end.keys

if @autobump.empty?
# TODO: uncomment when official taps are prepared to use new autobump system
#
# autobump_packages = if core_cask_tap?
# Homebrew::API::Cask.all_casks
# elsif core_tap?
# Homebrew::API::Formula.all_formulae
# else
# {}
# end
#
# @autobump ||= autobump_packages.select do |_, p|
# p["autobump"] == true && !p["skip_livecheck"] && !(p["deprecated"] || p["disabled"])
# end.keys

if @autobump.blank?
@autobump = if (autobump_file = path/HOMEBREW_TAP_AUTOBUMP_FILE).file?
autobump_file.readlines(chomp: true)
else
Expand Down
Loading