Merge pull request #3644 from MikeMcQuaid/upgrade-skip-failed-reqs

upgrade: skip formula if upgrade fails due to unsatisfied requirement.
This commit is contained in:
ilovezfs 2018-01-08 07:10:35 -08:00 committed by GitHub
commit 987805d3dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,10 +89,14 @@ module Homebrew
formulae_to_install.each do |f|
Migrator.migrate_if_needed(f)
upgrade_formula(f)
next unless ARGV.include?("--cleanup")
next unless f.installed?
Homebrew::Cleanup.cleanup_formula f
begin
upgrade_formula(f)
next unless ARGV.include?("--cleanup")
next unless f.installed?
Homebrew::Cleanup.cleanup_formula f
rescue UnsatisfiedRequirements => e
onoe "#{f}: #{e}"
end
end
end