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:
parent
a39ba39688
commit
e38dd0b764
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user