diff options
| author | Adam Vandenberg | 2010-01-11 09:07:53 -0800 |
|---|---|---|
| committer | Max Howell | 2010-01-13 11:23:14 +0000 |
| commit | e97c16f498fe52c4e2fbfc1428c886c1c3cc5179 (patch) | |
| tree | 1a4a24f35ae79b6e0c264926b6f3d092337a9745 | |
| parent | d62fc635684eddae4e647ef1d57e5de5e08b2419 (diff) | |
| download | brew-e97c16f498fe52c4e2fbfc1428c886c1c3cc5179.tar.bz2 | |
Fixes Homebrew/homebrew#433
| -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 9fe276ad3..a9d8a61df 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -38,7 +38,8 @@ end class Formulary # Returns all formula names as strings, with or without aliases def self.names with_aliases=false - everything = (HOMEBREW_REPOSITORY+'Library/Formula').children.map{|f| f.basename('.rb').to_s } + filenames = (HOMEBREW_REPOSITORY+'Library/Formula').children.select {|f| f.to_s =~ /\.rb$/ } + everything = filenames.map{|f| f.basename('.rb').to_s } everything.push *Formulary.get_aliases.keys if with_aliases everything.sort end |
