Skip to content

Commit

Permalink
dnfdragora/ui: Drop check on makecache timer
Browse files Browse the repository at this point in the history
The timer no longer exists with DNF5.
  • Loading branch information
Conan-Kudo committed Sep 12, 2024
1 parent 04fe889 commit 391f66f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions dnfdragora/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 391f66f

Please sign in to comment.