diff options
| author | Xu Cheng | 2015-09-13 17:04:04 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-09-13 17:05:27 +0800 |
| commit | 1e344c9672b3d75d549674c7547a55e4194a5b57 (patch) | |
| tree | 5f7ed438c4c34f6306263e12f8502973218b8435 /Library | |
| parent | 034b19cea714c3b36888751016ebb9a28c686ab9 (diff) | |
| download | brew-1e344c9672b3d75d549674c7547a55e4194a5b57.tar.bz2 | |
Formula#core_names: use core_files
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 862e180cb..a9fdb7c14 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -937,7 +937,7 @@ class Formula # an array of all core {Formula} names # @private def self.core_names - @core_names ||= Dir["#{HOMEBREW_LIBRARY}/Formula/*.rb"].map { |f| File.basename f, ".rb" }.sort + @core_names ||= core_files.map { |f| f.basename(".rb").to_s }.sort end # an array of all core {Formula} files |
