Skip to content

Commit

Permalink
Merge pull request #3644 from MikeMcQuaid/upgrade-skip-failed-reqs
Browse files Browse the repository at this point in the history
upgrade: skip formula if upgrade fails due to unsatisfied requirement.
  • Loading branch information
ilovezfs committed Jan 8, 2018
2 parents 13998f5 + dbeebca commit 987805d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Library/Homebrew/cmd/upgrade.rb
Expand Up @@ -89,10 +89,14 @@ def upgrade

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

Expand Down

0 comments on commit 987805d

Please sign in to comment.