Check that the cellar exists in Formula.installed

Fixes Homebrew/homebrew#21741.
This commit is contained in:
Jack Nagel 2013-08-10 19:56:28 -05:00
parent 966e82663f
commit 14dd61fc87

View File

@ -355,6 +355,8 @@ class Formula
end
def self.installed
return [] unless HOMEBREW_CELLAR.directory?
HOMEBREW_CELLAR.children.map do |rack|
begin
factory(rack.basename.to_s)