From 174237ae061614761e58f4f226278c7cb6e63ebf Mon Sep 17 00:00:00 2001 From: Jakub Kuczys Date: Sun, 24 May 2026 20:39:53 +0200 Subject: [PATCH] Fix force-reinstall edge case not allowing current version (#6778) --- redbot/_update/updater.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/redbot/_update/updater.py b/redbot/_update/updater.py index 4adb952b7..d6fb20749 100644 --- a/redbot/_update/updater.py +++ b/redbot/_update/updater.py @@ -312,7 +312,10 @@ class Updater: ) if self.options.red_version: - if self.options.red_version <= self.current_version: + if self.options.red_version < self.current_version or ( + not self.options.force_reinstall + and self.options.red_version == self.current_version + ): common.print_with_prefix_column( common.ICON_ERROR, "You can only update to a newer version of Red." )