diff options
| author | Xu Cheng | 2015-12-06 21:47:34 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-12-09 16:56:59 +0800 |
| commit | 061a34b138232083fdad7eaf28a30085adccbf42 (patch) | |
| tree | 3b96afeaf4d1a946990706d3bdb3ffdf6e8129fa | |
| parent | b810c034b753223911a12add9ea53f9c3b7efb5a (diff) | |
| download | brew-061a34b138232083fdad7eaf28a30085adccbf42.tar.bz2 | |
Formulary.core_path: use CoreFormulaRepository#formula_dir
| -rw-r--r-- | Library/Homebrew/formulary.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index 0eefad1f5..d7b9f020b 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -326,7 +326,7 @@ class Formulary end def self.core_path(name) - Pathname.new("#{HOMEBREW_LIBRARY}/Formula/#{name.downcase}.rb") + CoreFormulaRepository.instance.formula_dir/"#{name.downcase}.rb" end def self.tap_paths(name, taps = Dir["#{HOMEBREW_LIBRARY}/Taps/*/*/"]) |
