This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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`.
  • Loading branch information...
1 parent 588da03 commit 207f8f8c22d42b983ce6a48933f9d7f4dd39b899 @samueljohn samueljohn committed Aug 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Library/Homebrew/formula.rb
@@ -357,7 +357,7 @@ class << self
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

0 comments on commit 207f8f8

Please sign in to comment.