Merge pull request #7525 from MikeMcQuaid/deprecated_cask_taps

os/mac/diagnostic: check for deprecated cask taps.
This commit is contained in:
Mike McQuaid 2020-05-08 09:53:52 +01:00 committed by GitHub
commit a635db0f26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -345,6 +345,17 @@ module Homebrew
directory on the same volume as your Cellar.
EOS
end
def check_deprecated_caskroom_taps
tapped_caskroom_taps = Tap.select { |t| t.user == "caskroom" }.map(&:repo)
return if tapped_caskroom_taps.empty?
<<~EOS
You have the following deprecated, cask taps tapped:
Caskroom/homebrew-#{tapped_caskroom_taps.join("\n Caskroom/homebrew-")}
Untap them with `brew untap`.
EOS
end
end
end
end