aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 27cf1d64a..0930e43c1 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -348,7 +348,8 @@ class Formula
end
def self.installed
- HOMEBREW_CELLAR.children.map{ |rack| factory(rack.basename) rescue nil }.compact
+ # `rescue nil` is here to skip kegs with no corresponding formulae
+ HOMEBREW_CELLAR.children.map{ |rack| factory(rack.basename.to_s) rescue nil }.compact
end
def self.aliases