Add cask-eid to list of deprecated taps.

This commit is contained in:
Markus Reiter 2020-08-13 04:24:37 +02:00
parent 6d9bf7286e
commit 72ce3fabe2
2 changed files with 4 additions and 2 deletions

View File

@ -14,6 +14,7 @@ OFFICIAL_CMD_TAPS = {
DEPRECATED_OFFICIAL_TAPS = %w[ DEPRECATED_OFFICIAL_TAPS = %w[
apache apache
binary binary
cask-eid
completions completions
devel-only devel-only
dupes dupes

View File

@ -234,9 +234,10 @@ class Tap
require "descriptions" require "descriptions"
if official? && DEPRECATED_OFFICIAL_TAPS.include?(repo) if official? && DEPRECATED_OFFICIAL_TAPS.include?(repo)
odie "#{name} was deprecated. This tap is now empty as all its formulae were migrated." odie "#{name} was deprecated. This tap is now empty and all its contents were either deleted or migrated."
elsif user == "caskroom" elsif user == "caskroom"
odie "#{name} was moved. Tap homebrew/cask-#{repo} instead." new_repo = repo == "cask" ? "cask" : "cask-#{repo}"
odie "#{name} was moved. Tap homebrew/#{new_repo} instead."
end end
requested_remote = clone_target || default_remote requested_remote = clone_target || default_remote