From 061a34b138232083fdad7eaf28a30085adccbf42 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sun, 6 Dec 2015 21:47:34 +0800 Subject: [PATCH] Formulary.core_path: use CoreFormulaRepository#formula_dir --- Library/Homebrew/formulary.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index 0eefad1f52..d7b9f020ba 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/*/*/"])