brew-audit: do not abort after first brew with errors

This commit is contained in:
Adam Vandenberg 2011-05-31 13:23:42 -07:00
parent 846b6cb91b
commit cf13c6ddf3

View File

@ -246,6 +246,8 @@ end
module Homebrew extend self
def audit
errors = false
ff.each do |f|
problems = []
problems += audit_formula_instance f
@ -274,11 +276,13 @@ module Homebrew extend self
problems += audit_formula_options(f, text_without_patch)
unless problems.empty?
errors = true
puts "#{f.name}:"
puts problems * "\n"
puts
exit 1
end
end
exit 1 if errors
end
end