uninstall: ignore deprecations when uninstalling.
Handle `MethodDeprecatedError` because we want people to be able to uninstall regardless of the content of their formula.
This commit is contained in:
parent
649c7ab48a
commit
39a0fec95d
@ -81,6 +81,9 @@ module Homebrew
|
||||
|
||||
all_kegs = kegs_by_rack.values.flatten(1)
|
||||
check_for_dependents all_kegs
|
||||
rescue MethodDeprecatedError
|
||||
# Silently ignore deprecations when uninstalling.
|
||||
nil
|
||||
end
|
||||
|
||||
def check_for_dependents(kegs)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user