mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
adding parameter to fetch quietly if wanted
This commit is contained in:
parent
19901b5332
commit
052c0ae2cd
@ -3205,11 +3205,11 @@ class Formula
|
|||||||
patchlist.select(&:external?).each(&:fetch)
|
patchlist.select(&:external?).each(&:fetch)
|
||||||
end
|
end
|
||||||
|
|
||||||
sig { void }
|
sig { params(quiet: T::Boolean).void }
|
||||||
def fetch_bottle_tab
|
def fetch_bottle_tab(quiet: false)
|
||||||
return unless bottled?
|
return unless bottled?
|
||||||
|
|
||||||
T.must(bottle).fetch_tab
|
T.must(bottle).fetch_tab(quiet: quiet)
|
||||||
end
|
end
|
||||||
|
|
||||||
sig { returns(T::Hash[String, T.untyped]) }
|
sig { returns(T::Hash[String, T.untyped]) }
|
||||||
|
@ -1355,12 +1355,12 @@ on_request: installed_on_request?, options:)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
sig { void }
|
sig { params(quiet: T::Boolean).void }
|
||||||
def fetch_bottle_tab
|
def fetch_bottle_tab(quiet: false)
|
||||||
return if @fetch_bottle_tab
|
return if @fetch_bottle_tab
|
||||||
|
|
||||||
begin
|
begin
|
||||||
formula.fetch_bottle_tab
|
formula.fetch_bottle_tab(quiet: quiet)
|
||||||
@bottle_tab_runtime_dependencies = formula.bottle_tab_attributes
|
@bottle_tab_runtime_dependencies = formula.bottle_tab_attributes
|
||||||
.fetch("runtime_dependencies", []).then { |deps| deps || [] }
|
.fetch("runtime_dependencies", []).then { |deps| deps || [] }
|
||||||
.each_with_object({}) { |dep, h| h[dep["full_name"]] = dep }
|
.each_with_object({}) { |dep, h| h[dep["full_name"]] = dep }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user