diff options
| author | Adam Vandenberg | 2011-03-12 17:40:40 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 17:40:40 -0800 |
| commit | 749b91c6baf004adbbdc32c3a10e9b0d209c13b3 (patch) | |
| tree | 0f63653663aa48c25d709c6ce861ed9a6a84f27a | |
| parent | 2e340625f83ad73ede4b9d1c15f8e5951fbe29fe (diff) | |
| download | brew-749b91c6baf004adbbdc32c3a10e9b0d209c13b3.tar.bz2 | |
brew audit: check for missing deps
| -rwxr-xr-x | Library/Homebrew/cmd/audit.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 354858b07..f283771e5 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." |
