adding parameter to fetch quietly if wanted

This commit is contained in:
thibhero 2025-06-20 12:25:12 -04:00
parent 19901b5332
commit 052c0ae2cd
2 changed files with 6 additions and 6 deletions

View File

@ -3205,11 +3205,11 @@ class Formula
patchlist.select(&:external?).each(&:fetch)
end
sig { void }
def fetch_bottle_tab
sig { params(quiet: T::Boolean).void }
def fetch_bottle_tab(quiet: false)
return unless bottled?
T.must(bottle).fetch_tab
T.must(bottle).fetch_tab(quiet: quiet)
end
sig { returns(T::Hash[String, T.untyped]) }

View File

@ -1355,12 +1355,12 @@ on_request: installed_on_request?, options:)
end
end
sig { void }
def fetch_bottle_tab
sig { params(quiet: T::Boolean).void }
def fetch_bottle_tab(quiet: false)
return if @fetch_bottle_tab
begin
formula.fetch_bottle_tab
formula.fetch_bottle_tab(quiet: quiet)
@bottle_tab_runtime_dependencies = formula.bottle_tab_attributes
.fetch("runtime_dependencies", []).then { |deps| deps || [] }
.each_with_object({}) { |dep, h| h[dep["full_name"]] = dep }