From 058bb71fb9debd003a84ed0349dc71db0e04aa88 Mon Sep 17 00:00:00 2001 From: Amadeus Date: Mon, 26 Oct 2026 11:39:19 -0300 Subject: [PATCH] mintSources.py: Show "Obsolete" for out of date mirrors show_speed_test_result() uses "if ... if ... else" instead of "if ... elif ... else", so for an out of date mirror (-1) the "Obsolete" label is set and then immediately overwritten by the else branch with "0 kB/s". The "Obsolete" label was never shown. Co-Authored-By: Claude Opus 5.5 --- usr/lib/linuxmint/mintSources/mintSources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/linuxmint/mintSources/mintSources.py b/usr/lib/linuxmint/mintSources/mintSources.py index 3816782..134ec79 100755 --- a/usr/lib/linuxmint/mintSources/mintSources.py +++ b/usr/lib/linuxmint/mintSources/mintSources.py @@ -752,7 +752,7 @@ def show_speed_test_result(self, iter, download_speed): if download_speed == -1: # don't remove from model as this is not thread-safe self._mirrors_model.set_value(iter, MirrorSelectionDialog.MIRROR_SPEED_LABEL_COLUMN, _("Obsolete")) - if download_speed == 0: + elif download_speed == 0: # don't remove from model as this is not thread-safe self._mirrors_model.set_value(iter, MirrorSelectionDialog.MIRROR_SPEED_LABEL_COLUMN, _("Unreachable")) else: