diff options
| author | Mike McQuaid | 2017-04-25 12:08:50 +0100 | 
|---|---|---|
| committer | Mike McQuaid | 2017-04-25 12:08:50 +0100 | 
| commit | b2a291529d0878a51e3e082c3668c54abdbff6c1 (patch) | |
| tree | 9b43dce8bdd0b24bb4fa4ceab294f3d4b8d92f06 /Library/Homebrew/dev-cmd | |
| parent | 24a339ee239a4e13e5162085780687fcd2b7bc9f (diff) | |
| download | brew-b2a291529d0878a51e3e082c3668c54abdbff6c1.tar.bz2 | |
audit: fix use of search_tap method.
This was removed in #2540 but this call site was note updated to use
the `search_taps` method instead.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 32130f343..d450b65f5 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -368,11 +368,11 @@ class FormulaAuditor      same_name_tap_formulae = @@local_official_taps_name_map[name] || []      if @online -      @@remote_official_taps ||= OFFICIAL_TAPS - Tap.select(&:official?).map(&:repo) - -      same_name_tap_formulae += @@remote_official_taps.map do |tap| -        Thread.new { Homebrew.search_tap "homebrew", tap, name } -      end.flat_map(&:value) +      Homebrew.search_taps(name).each do |tap_formula_full_name| +        tap_formula_name = tap_formula_full_name.split("/").last +        next if tap_formula_name != name +        same_name_tap_formulae << tap_formula_full_name +      end      end      same_name_tap_formulae.delete(full_name)  | 
