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`.
This commit is contained in:
Samuel John 2013-08-27 10:25:23 +02:00
parent a39ba39688
commit e38dd0b764

View File

@ -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