utils: stop suggesting fixing hard deprecations

This commit is contained in:
Dominyk Tiller 2018-03-02 06:42:24 +00:00
parent 43c658a8fa
commit e960ccdf18
No known key found for this signature in database
GPG Key ID: FE19AEFCF658C6F6

View File

@ -109,7 +109,11 @@ def odeprecated(method, replacement = nil, disable: false, disable_on: nil, call
if ARGV.homebrew_developer? || disable ||
Homebrew.raise_deprecation_exceptions?
developer_message = message + "Or, even better, submit a PR to fix it!"
if replacement_message != "There is no replacement."
developer_message = message + "Or, even better, submit a PR to fix it!"
else
developer_message = message
end
raise MethodDeprecatedError, developer_message
elsif !Homebrew.auditing?
opoo "#{message}\n"