aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-04-12 13:09:51 -0700
committerAdam Vandenberg2010-04-12 13:09:51 -0700
commitde21400fd06a204cab82e1ca45834db607116fb9 (patch)
tree1859a3abc13bb3f925f8ac472541c5ae2d04e8ac
parent3103ff4b9c73b8b461874799d4d47b4da25f3dda (diff)
downloadbrew-de21400fd06a204cab82e1ca45834db607116fb9.tar.bz2
Use Array#length instead of count. Fixes Homebrew/homebrew#1165
-rw-r--r--Library/Homebrew/brew_doctor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb
index c6d7c81d9..146755d49 100644
--- a/Library/Homebrew/brew_doctor.rb
+++ b/Library/Homebrew/brew_doctor.rb
@@ -1,6 +1,6 @@
def check_for_stray_dylibs
bad_dylibs = Dir['/usr/local/lib/*.dylib'].select { |f| File.file? f and not File.symlink? f }
- if bad_dylibs.count > 0
+ if bad_dylibs.length > 0
puts "You have unbrewed dylibs in /usr/local/lib. These could cause build problems"
puts "when building Homebrew formula. If you no longer need them, delete them:"
puts
@@ -67,7 +67,7 @@ def check_share_locale
end
cant_read.sort!
- if cant_read.count > 0
+ if cant_read.length > 0
puts <<-EOS.undent
Some folders in #{locale} aren't writable.
This can happen if you "sudo make install" software that isn't managed