Skip to content
Snippets Groups Projects
Commit 2fcf349c authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1812 from MikeMcQuaid/formulary-read-keg-formula

formulary: read from formula in opt prefix.
parents 9cce3414 d8adae0f
No related branches found
No related tags found
No related merge requests found
......@@ -380,6 +380,11 @@ class Formulary
return TapLoader.new(possible_tap_newname_formulae.first, from: from)
end
possible_keg_formula = Pathname.new("#{HOMEBREW_PREFIX}/opt/#{ref}/.brew/#{ref}.rb")
if possible_keg_formula.file?
return FormulaLoader.new(ref, possible_keg_formula)
end
possible_cached_formula = Pathname.new("#{HOMEBREW_CACHE_FORMULA}/#{ref}.rb")
if possible_cached_formula.file?
return FormulaLoader.new(ref, possible_cached_formula)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment