SIGN IN SIGN UP
Homebrew / brew UNCLAIMED

🍺 The missing package manager for macOS (or Linux)

0 0 185 Ruby

fix: skip casks being uninstalled from dependent check

When uninstalling multiple casks at once, `check_dependent_casks`
incorrectly flags a cask as required by another cask that is also
being uninstalled in the same command. For example,
`brew uninstall libreoffice-language-pack libreoffice` fails because
the method sees libreoffice-language-pack (which depends on
libreoffice) as an installed dependent, even though it too is being
removed.

Skip casks whose tokens appear in the removal list before checking
their dependencies. This mirrors how the formula path already handles
the same scenario in `InstalledDependents.find_some_installed_dependents`.

Closes #21886
J
John Costa committed
e1b931905ec28a8198b092f8af1b59689a8ca8aa
Parent: 8fbdcb7