diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 354858b071..f283771e5c 100755 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -196,6 +196,12 @@ def audit_formula_instance f # Check for things we don't like to depend on. # We allow non-Homebrew installs whenenever possible. f.deps.each do |d| + begin + dep_f = Formula.factory d + rescue + problems << " * Can't find dependency \"#{d}\"." + end + case d when "git" problems << " * Don't use Git as a dependency; we allow non-Homebrew git installs."