aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-09-07 09:23:29 -0700
committerAdam Vandenberg2010-09-07 09:23:29 -0700
commit14353b5491f64852da15af9cf3a1623a7dcda4b6 (patch)
tree3819ecbb59d3ab9300fea40bb9b138101f99a39b
parent53cf7e843b05a1dc1247312c9358023234bb9411 (diff)
downloadbrew-14353b5491f64852da15af9cf3a1623a7dcda4b6.tar.bz2
brew-audit: add check for git and fix warnings
-rwxr-xr-xLibrary/Contributions/examples/brew-audit.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb
index b968ef327..666d52423 100755
--- a/Library/Contributions/examples/brew-audit.rb
+++ b/Library/Contributions/examples/brew-audit.rb
@@ -112,6 +112,15 @@ def audit_formula_instance f
problems << " * Dep #{d} is an alias; switch to the real name."
end
+ # Check for things we don't like to depend on.
+ # We allow non-Homebrew installs whenenever possible.
+ f.deps.each do |d|
+ case d
+ when "git"
+ problems << " * Don't use Git as a dependency; we allow non-Homebrew git installs."
+ end
+ end
+
# Google Code homepages should end in a slash
if f.homepage =~ %r[^https?://code\.google\.com/p/[^/]+[^/]$]
problems << " * Google Code homepage should end with a slash."