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:
Mike McQuaid 2016-11-18 09:34:58 +00:00
parent 649c7ab48a
commit 39a0fec95d

View File

@ -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)