Skip to content
Snippets Groups Projects
Unverified Commit a755bec6 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

formula: handle missing runtime dependency formulae.

This is most likely an old formula with bad dependency data so output
the path so it can be uninstalled.
parent 36a7fe59
No related branches found
No related tags found
No related merge requests found
......@@ -1546,8 +1546,13 @@ class Formula
Dependency.new full_name
end.compact
end
deps ||= declared_runtime_dependencies unless undeclared
deps ||= (declared_runtime_dependencies | undeclared_runtime_dependencies)
begin
deps ||= declared_runtime_dependencies unless undeclared
deps ||= (declared_runtime_dependencies | undeclared_runtime_dependencies)
rescue FormulaUnavailableError
onoe "could not get runtime dependencies from #{path}!"
deps ||= []
end
deps
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment