aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-06-29 09:38:41 -0700
committerAdam Vandenberg2013-06-29 09:38:57 -0700
commit62c93b1889c0d95ee8ffa93753bb237ebebf76e5 (patch)
treee7b355667ebe35447611e6df2d4a737810b8ca2f /Library
parent04348dddc21d7282d49d6249362ce28b67c2ec1c (diff)
downloadhomebrew-62c93b1889c0d95ee8ffa93753bb237ebebf76e5.tar.bz2
Pass strings to factory
Diffstat (limited to 'Library')
-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