Skip to content

Commit

Permalink
Merge pull request #18054 from reitermarkus/disable-message
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid authored Aug 15, 2024
2 parents 14633b3 + 3342d5f commit 0c90fd9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Library/Homebrew/deprecate_disable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ def message(formula_or_cask)
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
Expand Down

0 comments on commit 0c90fd9

Please sign in to comment.