Merge pull request #7611 from MikeMcQuaid/more-untap-casks

os/mac/diagnostic: suggest untapping phinze/cask.
This commit is contained in:
Mike McQuaid 2020-05-20 10:34:41 +01:00 committed by GitHub
commit 4c79270ce1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -347,12 +347,13 @@ module Homebrew
end
def check_deprecated_caskroom_taps
tapped_caskroom_taps = Tap.select { |t| t.user == "caskroom" }.map(&:repo)
tapped_caskroom_taps = Tap.select { |t| t.user == "caskroom" || t.name == "phinze/cask" }
.map(&:name)
return if tapped_caskroom_taps.empty?
<<~EOS
You have the following deprecated, cask taps tapped:
Caskroom/homebrew-#{tapped_caskroom_taps.join("\n Caskroom/homebrew-")}
#{tapped_caskroom_taps.join("\n ")}
Untap them with `brew untap`.
EOS
end