Skip to content

Commit

Permalink
Drop block that sets max mirror tries to 1
Browse files Browse the repository at this point in the history
This functionality has always been present, but it's not clear why.
It was never requested by any user.  Removing these lines does allow
everything to function as expected, but dnf makecache now retries when
mirrors fail.

Resolves: RHEL-1342

Signed-off-by: David Cantrell <[email protected]>
  • Loading branch information
dcantrell committed Dec 5, 2023
1 parent 552e61e commit 2ee2826
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dnf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,6 @@ def update_cache(self, timer=False):
if since_last_makecache is not None and since_last_makecache < period:
logger.info(_('Metadata cache refreshed recently.'))
return False
for repo in self.repos.values():
repo._repo.setMaxMirrorTries(1)

if not self.repos._any_enabled():
logger.info(_('There are no enabled repositories in "{}".').format(
Expand Down

0 comments on commit 2ee2826

Please sign in to comment.