Fix force-reinstall edge case not allowing current version (#6778)

This commit is contained in:
Jakub Kuczys
2026-05-24 20:39:53 +02:00
committed by GitHub
parent fe191c8a3b
commit 174237ae06
+4 -1
View File
@@ -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."
)