brew audit: check for missing deps
This commit is contained in:
parent
2e340625f8
commit
749b91c6ba
@ -196,6 +196,12 @@ def audit_formula_instance f
|
|||||||
# Check for things we don't like to depend on.
|
# Check for things we don't like to depend on.
|
||||||
# We allow non-Homebrew installs whenenever possible.
|
# We allow non-Homebrew installs whenenever possible.
|
||||||
f.deps.each do |d|
|
f.deps.each do |d|
|
||||||
|
begin
|
||||||
|
dep_f = Formula.factory d
|
||||||
|
rescue
|
||||||
|
problems << " * Can't find dependency \"#{d}\"."
|
||||||
|
end
|
||||||
|
|
||||||
case d
|
case d
|
||||||
when "git"
|
when "git"
|
||||||
problems << " * Don't use Git as a dependency; we allow non-Homebrew git installs."
|
problems << " * Don't use Git as a dependency; we allow non-Homebrew git installs."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user