audit: add problem counts
This commit is contained in:
parent
b5268a877e
commit
0ae1772b89
@ -312,6 +312,9 @@ module Homebrew extend self
|
|||||||
def audit
|
def audit
|
||||||
errors = false
|
errors = false
|
||||||
|
|
||||||
|
brew_count = 0
|
||||||
|
problem_count = 0
|
||||||
|
|
||||||
ff.each do |f|
|
ff.each do |f|
|
||||||
problems = []
|
problems = []
|
||||||
|
|
||||||
@ -353,9 +356,14 @@ module Homebrew extend self
|
|||||||
puts "#{f.name}:"
|
puts "#{f.name}:"
|
||||||
puts problems * "\n"
|
puts problems * "\n"
|
||||||
puts
|
puts
|
||||||
|
brew_count += 1
|
||||||
|
problem_count += problems.size
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
exit 1 if errors
|
if errors
|
||||||
|
puts "#{problem_count} problems in #{brew_count} brews"
|
||||||
|
exit 1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user