[yum-cvs] yum/__init__.py yum/repos.py

Seth Vidal skvidal at linux.duke.edu
Fri Aug 3 04:36:40 UTC 2007


 yum/__init__.py |    4 ++--
 yum/repos.py    |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 20f8037138be9d757a16d4ed3b74b1409dbe1dac
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Fri Aug 3 00:36:12 2007 -0400

    sigh - take the change out of repos and put it in __init__.py - otherwise
    for calls _through_ the repos object like:
    self.repos.listEnabled() we won't ever setup the config until too late

diff --git a/yum/__init__.py b/yum/__init__.py
index 941d751..339da76 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -331,6 +331,7 @@ class YumBase(depsolve.Depsolve):
     def _getRepos(self, thisrepo=None, doSetup = False):
         """grabs the repomd.xml for each enabled repository and sets up 
            the basics of the repository"""
+        self._getConfig() # touch the config class first
 
         if doSetup:
             self._repos.doSetup(thisrepo)
@@ -345,7 +346,7 @@ class YumBase(depsolve.Depsolve):
     def _getSacks(self, archlist=None, thisrepo=None):
         """populates the package sacks for information from our repositories,
            takes optional archlist for archs to include"""
-        
+
         if self._pkgSack and thisrepo is None:
             self.verbose_logger.log(logginglevels.DEBUG_4,
                 'skipping reposetup, pkgsack exists')
@@ -356,7 +357,6 @@ class YumBase(depsolve.Depsolve):
         else:
             repos = self.repos.findRepos(thisrepo)
         
-        
         self.verbose_logger.debug('Setting up Package Sacks')
         if not archlist:
             archlist = rpmUtils.arch.getArchList()
diff --git a/yum/repos.py b/yum/repos.py
index 575bbcf..4efe22b 100644
--- a/yum/repos.py
+++ b/yum/repos.py
@@ -42,7 +42,7 @@ class RepoStorage:
 
     def doSetup(self, thisrepo = None):
         
-        self.ayum._getConfig() # touch the config - first thing we do
+
         self.ayum.plugins.run('prereposetup')
         
         if thisrepo is None:



More information about the Yum-cvs-commits mailing list