Merge pull request #18054 from reitermarkus/disable-message

This commit is contained in:
Mike McQuaid 2024-08-15 09:52:01 +01:00 committed by GitHub
commit 0c90fd9f08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,7 +67,13 @@ module DeprecateDisable
if !disable_date && formula_or_cask.deprecation_date
disable_date = formula_or_cask.deprecation_date >> REMOVE_DISABLED_TIME_WINDOW
end
message = "#{message} It will be disabled on #{disable_date}." if disable_date
if disable_date
message += if disable_date < Date.today
" It was disabled on #{disable_date}."
else
" It will be disabled on #{disable_date}."
end
end
message
end