Skip to content
Snippets Groups Projects
Unverified Commit 16e72529 authored by Connor Mann's avatar Connor Mann
Browse files

Don't uninstall older versions with `--HEAD`

parent 7ae9cc34
No related branches found
No related tags found
No related merge requests found
......@@ -322,7 +322,8 @@ module Homebrew
installed_formulae.each do |f|
Migrator.migrate_if_needed(f, force: args.force?)
install_formula(f, args: args)
Cleanup.install_formula_clean!(f)
# Don't uninstall older keg(s) if installing HEAD keg(s).
Cleanup.install_formula_clean!(f) unless args.HEAD?
end
Upgrade.check_installed_dependents(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment