Skip to content
Snippets Groups Projects
Commit af272e04 authored by Jack Nagel's avatar Jack Nagel
Browse files

Restore recursive tap search

Fixes Homebrew/homebrew#28234.
parent f243163b
No related branches found
No related tags found
No related merge requests found
......@@ -157,7 +157,17 @@ class Formulary
def initialize tapped_name
@tapped_name = tapped_name
user, repo, name = tapped_name.split("/", 3).map(&:downcase)
path = Pathname.new("#{HOMEBREW_LIBRARY}/Taps/#{user}-#{repo}/#{name}.rb")
tap = Pathname.new("#{HOMEBREW_LIBRARY}/Taps/#{user}-#{repo}")
path = tap.join("#{name}.rb")
if tap.directory?
tap.find_formula do |child|
if child.basename(".rb").to_s == name
path = tap.join(child)
end
end
end
super name, path
end
......
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