From 391f66fcea52c8b64de67fb99887c62f430c71c7 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Thu, 12 Sep 2024 05:05:27 -0400 Subject: [PATCH] dnfdragora/ui: Drop check on makecache timer The timer no longer exists with DNF5. --- dnfdragora/ui.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dnfdragora/ui.py b/dnfdragora/ui.py index 2c60ccd..5b9d1b2 100644 --- a/dnfdragora/ui.py +++ b/dnfdragora/ui.py @@ -29,7 +29,6 @@ from gi.repository import GLib import manatools.ui.helpdialog as helpdialog -import manatools.services as services import dnfdragora.basedragora import dnfdragora.compsicons as compsicons import dnfdragora.groupicons as groupicons @@ -2098,11 +2097,6 @@ def _check_MD_cache_expired(self): if self.md_update_interval <= 0: logger.debug("Metadata expired check disabled") return False - # check if dnf MakeCache timer is is enabed - ms = services.Services().manager - if ms.GetUnitFileState('dnf-makecache.timer') == 'enabled' : - logger.debug("MakeCache enabled") - return False # check this is the first time dnfdragora is run for this user if not self.md_last_refresh_date: logger.debug("Never downloaded Metadata before, forcing it now")