Skip to content
Snippets Groups Projects
Unverified Commit 2b9edf72 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

unlink: unlink only keg-only versioned formulae.

As otherwise we unlink those that don't conflict e.g. `gcc@8` and
`gcc@9`.
parent 40cc423f
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ module Homebrew
def unlink_versioned_formulae(formula, verbose: false)
formula.versioned_formulae
.select(&:keg_only?)
.select(&:linked?)
.map(&:any_installed_keg)
.compact
......
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