diff options
| author | Adam Vandenberg | 2013-06-29 09:38:41 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-29 09:38:57 -0700 |
| commit | a6777838d44c66fa6c5051af3b43cd6e596a502b (patch) | |
| tree | f4baf0b591a73549b98273c6cb25bbd96f242c03 /Library | |
| parent | e62ad08af8f6555e838f8c21ab4ad1ac5e47b26e (diff) | |
| download | brew-a6777838d44c66fa6c5051af3b43cd6e596a502b.tar.bz2 | |
Pass strings to factory
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 3 |
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 |
