Skip to content

Commit

Permalink
Remove repos.findRepos("*"), for repos.sort().
Browse files Browse the repository at this point in the history
  • Loading branch information
james-antill committed Jun 14, 2013
1 parent 5453a38 commit 543eea7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion yum-cron/yum-cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ def acquireLock(self):
def populateUpdateMetadata(self):
"""Populate the metadata for the packages in the update."""

for repo in self.repos.findRepos('*'):
for repo in self.repos.sort():
repo.metadata_expire = 0

self.upinfo
Expand Down
6 changes: 3 additions & 3 deletions yumcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ def checkRepoPackageArg(base, basecmd, extcmds):
if not repos[0].isEnabled():
# Might as well just fix this...
base.repos.enableRepo(repos[0].id)
base.logger.critical(
_('Repo %s has been automatically enabled') % repos[0].ui_id)
base.verbose_logger.info(
_('Repo %s has been automatically enabled.') % repos[0].ui_id)


def checkItemArg(base, basecmd, extcmds):
Expand Down Expand Up @@ -1322,7 +1322,7 @@ def doCommand(self, base, basecmd, extcmds):
fast = True

if True: # Try, YumBase...
for repo in base.repos.findRepos('*'):
for repo in base.repos.sort():
repo.metadata_expire = 0
if not fast:
repo.mdpolicy = "group:all"
Expand Down

0 comments on commit 543eea7

Please sign in to comment.