aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel John2013-08-27 10:25:23 +0200
committerSamuel John2013-08-28 09:35:11 +0200
commite38dd0b7642e71e01c15bff6ed6641b7dbab1d7e (patch)
tree8a31c6b3294bc2b2ce23ecec21fb2d1c1d0698c0
parenta39ba39688a912a914fee3f1b052b3261f32bce8 (diff)
downloadbrew-e38dd0b7642e71e01c15bff6ed6641b7dbab1d7e.tar.bz2
Don't consider files in the Cellar as Racks
Otherwiese a `Cellar/.DS_Store` may lead to an error about `.ds_store.rb` not found during `brew upgrade`.
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index c54df055d..cd899d45c 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -357,7 +357,7 @@ class Formula
def self.installed
return [] unless HOMEBREW_CELLAR.directory?
- HOMEBREW_CELLAR.children.map do |rack|
+ HOMEBREW_CELLAR.subdirs.map do |rack|
begin
factory(rack.basename.to_s)
rescue FormulaUnavailableError