diff options
| author | Jack Nagel | 2014-04-07 18:44:29 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-04-07 18:44:29 -0500 |
| commit | 9566944214c92d1743ee00ffb80dfe9142d02dc2 (patch) | |
| tree | ef36a6757fb37d4670139953aee4bcd112469f1b | |
| parent | bebaac2582d81027ce3a774103cf138bf5d8730c (diff) | |
| download | homebrew-9566944214c92d1743ee00ffb80dfe9142d02dc2.tar.bz2 | |
Restore recursive tap search
Fixes #28234.
| -rw-r--r-- | Library/Homebrew/formulary.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index ac4e8d18f..77ec98a37 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -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 |
