brew update: warn about adamv/homebrew-alt
This commit is contained in:
parent
6672ef5f9f
commit
30114c4c70
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user