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.
This commit is contained in:
Mike McQuaid 2017-04-25 12:08:50 +01:00
parent 24a339ee23
commit b2a291529d

View File

@ -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)