diff options
| author | Adam Vandenberg | 2010-01-11 09:07:53 -0800 |
|---|---|---|
| committer | Max Howell | 2010-01-13 11:23:14 +0000 |
| commit | ad2c375ca155dca098917d023a0d7a6cf71c3b3e (patch) | |
| tree | 8f76d9745b1e2fad0177348bbec051b0883f5441 /Library | |
| parent | ec1b2fda92cad112b20c0bb6d7d19ecdcefc2c8b (diff) | |
| download | homebrew-ad2c375ca155dca098917d023a0d7a6cf71c3b3e.tar.bz2 | |
Fixes #433
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 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 |
