diagnostic: warn people about tapped, deprecated taps.

This commit is contained in:
Mike McQuaid 2019-02-16 20:07:10 +00:00
parent e7ce5dddb7
commit 67cbb129ff
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -604,6 +604,18 @@ module Homebrew
EOS EOS
end end
def check_deprecated_official_taps
tapped_deprecated_taps =
Tap.select(&:official?).map(&:repo) & DEPRECATED_OFFICIAL_TAPS
return if tapped_deprecated_taps.empty?
<<~EOS
You have the following deprecated, official taps tapped:
Homebrew/homebrew-#{tapped_deprecated_taps.join("\n ")}
Untap them with `brew untap`.
EOS
end
def __check_linked_brew(f) def __check_linked_brew(f)
f.installed_prefixes.each do |prefix| f.installed_prefixes.each do |prefix|
prefix.find do |src| prefix.find do |src|