From cd2288a5610598295d2e54e4aefb8ac9064c3f04 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sun, 24 Jul 2016 20:18:59 +0800 Subject: 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.--- Library/Homebrew/extend/os/mac/formula_cellar_checks.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Library/Homebrew') 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. -- cgit v1.2.3