brew update: warn about adamv/homebrew-alt

This commit is contained in:
Adam Vandenberg 2013-01-06 17:04:08 -08:00
parent 6672ef5f9f
commit 30114c4c70

View File

@ -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