From e38dd0b7642e71e01c15bff6ed6641b7dbab1d7e Mon Sep 17 00:00:00 2001 From: Samuel John Date: Tue, 27 Aug 2013 10:25:23 +0200 Subject: [PATCH] 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`. --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index c54df055da..cd899d45c4 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