aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2016-07-24 20:18:59 +0800
committerGitHub2016-07-24 20:18:59 +0800
commitcd2288a5610598295d2e54e4aefb8ac9064c3f04 (patch)
treec634426d5c4790d1684ba7cc5e8f35e3f61bcfb9
parent2b9a2833bc3c6bc8e7b7344e8178ce98e29ebe4b (diff)
downloadbrew-cd2288a5610598295d2e54e4aefb8ac9064c3f04.tar.bz2
audit: only check undeclared deps for standard installations. (#576)
In fact, we don't really care about undeclared dependencies for optional installations. Because, this is mainly used to help us to detect breakage for bottles so we can do a revision bump.
-rw-r--r--Library/Homebrew/extend/os/mac/formula_cellar_checks.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/os/mac/formula_cellar_checks.rb b/Library/Homebrew/extend/os/mac/formula_cellar_checks.rb
index dd21559e2..ac07ec19d 100644
--- a/Library/Homebrew/extend/os/mac/formula_cellar_checks.rb
+++ b/Library/Homebrew/extend/os/mac/formula_cellar_checks.rb
@@ -71,6 +71,9 @@ module FormulaCellarChecks
EOS
end
+ # only check undeclared deps for standard installations.
+ return unless formula.build.used_options.empty?
+
if checker.undeclared_deps?
audit_check_output <<-EOS.undent
Formulae are required to declare all linked dependencies.