Merge pull request #16952 from Homebrew/nil-runtime-deps

This commit is contained in:
Eric Knibbe 2024-03-26 19:00:46 -04:00 committed by GitHub
commit 6eb589f3ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1209,7 +1209,7 @@ on_request: installed_on_request?, options:)
@fetch_bottle_tab ||= begin
formula.fetch_bottle_tab
@bottle_tab_runtime_dependencies = formula.bottle_tab_attributes
.fetch("runtime_dependencies", [])
.fetch("runtime_dependencies", []).then { |deps| deps || [] }
.each_with_object({}) { |dep, h| h[dep["full_name"]] = dep }
.freeze
true
@ -1262,7 +1262,7 @@ on_request: installed_on_request?, options:)
tab = Utils::Bottles.load_tab(formula)
# fill in missing/outdated parts of the tab
# keep in sync with Tab#to_bottle_json
# keep in sync with Tab#to_bottle_hash
tab.used_options = []
tab.unused_options = []
tab.built_as_bottle = true