aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-02-16 20:27:08 -0800
committerAdam Vandenberg2012-02-16 20:27:08 -0800
commit6137c1b1e39a45fbc21cebd4997998378a30d2c7 (patch)
tree271a72e3fe548a9c11ec72cd4511b1ca4afeb4f9 /Library
parenta18316c3b3d82c864fbf0d94cca2df2ed1e206d0 (diff)
downloadhomebrew-6137c1b1e39a45fbc21cebd4997998378a30d2c7.tar.bz2
audit: add problem counts
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 838ac268f..fac083564 100755
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -312,6 +312,9 @@ module Homebrew extend self
def audit
errors = false
+ brew_count = 0
+ problem_count = 0
+
ff.each do |f|
problems = []
@@ -353,9 +356,14 @@ module Homebrew extend self
puts "#{f.name}:"
puts problems * "\n"
puts
+ brew_count += 1
+ problem_count += problems.size
end
end
- exit 1 if errors
+ if errors
+ puts "#{problem_count} problems in #{brew_count} brews"
+ exit 1
+ end
end
end