Error handling for individual taps

Possibly would help diagnose: Homebrew/homebrew#13853.
This commit is contained in:
Max Howell 2012-08-01 16:19:25 -04:00
parent b51fe22413
commit ea6bfb66a1

View File

@ -20,11 +20,16 @@ module Homebrew extend self
new_files = []
Dir["Library/Taps/*"].each do |tapd|
cd tapd do
begin
updater = Updater.new
updater.pull!
report.merge!(updater.report) do |key, oldval, newval|
oldval.concat(newval)
end
rescue
tapd =~ %r{^Library/Taps/(\w+)-(\w+)}
onoe "Failed to update tap: #$1/#$2"
end
end
end