Further tweak formula installer runtime dep handling
Instead of adding a custom method to `Tab` use `Tab.runtime_deps_hash` within `FormulaInstaller` to ensure the `runtime_dependencies` are in the right format.
This commit is contained in:
parent
2863a88499
commit
1cbc78c5dd
@ -613,8 +613,8 @@ class FormulaInstaller
|
||||
# Update tab with actual runtime dependencies
|
||||
tab = Tab.for_keg(keg)
|
||||
Tab.clear_cache
|
||||
tab.runtime_dependency_objects =
|
||||
formula.runtime_dependencies(read_from_tab: false)
|
||||
f_runtime_deps = formula.runtime_dependencies(read_from_tab: false)
|
||||
tab.runtime_dependencies = Tab.runtime_deps_hash(f_runtime_deps)
|
||||
tab.write
|
||||
|
||||
# let's reset Utils.git_available? if we just installed git
|
||||
|
||||
@ -266,10 +266,6 @@ class Tab < OpenStruct
|
||||
super unless parsed_homebrew_version < "1.1.6"
|
||||
end
|
||||
|
||||
def runtime_dependency_objects=(deps)
|
||||
source["runtime_dependencies"] = Tab.runtime_deps_hash(deps)
|
||||
end
|
||||
|
||||
def cxxstdlib
|
||||
# Older tabs won't have these values, so provide sensible defaults
|
||||
lib = stdlib.to_sym if stdlib
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user