aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-04-22 18:45:09 +0100
committerGitHub2017-04-22 18:45:09 +0100
commit1ceb420bdd9b71e0cfddfe7b8998d2003c1bed7e (patch)
tree0e2eff21443fd115a5a819fee88d0c3a6e04c60a /Library
parent671de2acc6cdb5e0889e1489f7edf6a204511797 (diff)
parente04cb899acb40a6114468f266144f92d981f14a0 (diff)
downloadbrew-1ceb420bdd9b71e0cfddfe7b8998d2003c1bed7e.tar.bz2
Merge pull request #2480 from MikeMcQuaid/no-tap-deprecate-taps
tap: warn on tapping deprecated, official taps.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/official_taps.rb16
-rw-r--r--Library/Homebrew/tap.rb4
2 files changed, 20 insertions, 0 deletions
diff --git a/Library/Homebrew/official_taps.rb b/Library/Homebrew/official_taps.rb
index e069e5265..dcb65d9f8 100644
--- a/Library/Homebrew/official_taps.rb
+++ b/Library/Homebrew/official_taps.rb
@@ -15,3 +15,19 @@ OFFICIAL_CMD_TAPS = {
"homebrew/test-bot" => ["test-bot"],
"homebrew/services" => ["services"],
}.freeze
+
+DEPRECATED_OFFICIAL_TAPS = %w[
+ binary
+ completions
+ devel-only
+ dupes
+ emacs
+ fuse
+ games
+ gui
+ head-only
+ python
+ tex
+ versions
+ x11
+].freeze
diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb
index 99138330b..c3af73c7e 100644
--- a/Library/Homebrew/tap.rb
+++ b/Library/Homebrew/tap.rb
@@ -201,6 +201,10 @@ class Tap
quiet = options.fetch(:quiet, false)
requested_remote = options[:clone_target] || default_remote
+ if official? && DEPRECATED_OFFICIAL_TAPS.include?(repo)
+ opoo "#{name} was deprecated. This tap is now empty as all its formulae were migrated."
+ end
+
if installed?
raise TapAlreadyTappedError, name unless full_clone
raise TapAlreadyUnshallowError, name unless shallow?