From 30114c4c707812889d5a8bfc95bff706aa834c64 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 6 Jan 2013 17:04:08 -0800 Subject: [PATCH] brew update: warn about adamv/homebrew-alt --- Library/Homebrew/cmd/update.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb index 8b2d2e3d40..91517a6726 100644 --- a/Library/Homebrew/cmd/update.rb +++ b/Library/Homebrew/cmd/update.rb @@ -3,6 +3,8 @@ require 'cmd/untap' module Homebrew extend self + DEPRECATED_TAPS = ['adamv-alt'] + def update abort "Please `brew install git' first." unless which "git" @@ -21,6 +23,12 @@ module Homebrew extend self Dir["Library/Taps/*"].each do |tapd| next unless File.directory?(tapd) + basename = Pathname.new(tapd).basename.to_s + if DEPRECATED_TAPS.include?(basename) + opoo "#{basename} is deprecated; please untap it" + next + end + cd tapd do begin updater = Updater.new