Skip to content

Commit

Permalink
Merge pull request #16331 from MikeMcQuaid/untap_tap
Browse files Browse the repository at this point in the history
cmd/untap: be more careful about formula tap.
  • Loading branch information
MikeMcQuaid authored Dec 13, 2023
2 parents bd378a7 + fbd3d4e commit 2e3f110
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/Homebrew/cmd/untap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def untap
next
end

formula if formula.any_version_installed?
# Can't use Formula#any_version_installed? because it doesn't consider
# taps correctly.
formula if formula.installed_kegs.any? { |keg| keg.tab.tap == tap }
end.compact

installed_cask_tokens = T.let(nil, T.nilable(T::Set[String]))
Expand Down

0 comments on commit 2e3f110

Please sign in to comment.