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.
This commit is contained in:
Xu Cheng 2016-07-24 20:18:59 +08:00 committed by GitHub
parent 2b9a2833bc
commit cd2288a561

View File

@ -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.