[yum-cvs] yum/yum __init__.py,1.298,1.299

Jeremy Katz katzj at linux.duke.edu
Fri Mar 2 21:19:27 UTC 2007


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv32696/yum

Modified Files:
	__init__.py 
Log Message:
if someone calls doRepoSetup(), then they're expecting to go through
the full setup.  perhaps due to specifying a repo or something along those
lines.  so make it so that we can do that


Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/__init__.py,v
retrieving revision 1.298
retrieving revision 1.299
diff -u -r1.298 -r1.299
--- __init__.py	2 Mar 2007 21:08:32 -0000	1.298
+++ __init__.py	2 Mar 2007 21:19:25 -0000	1.299
@@ -301,16 +301,16 @@
         warnings.warn('doRepoSetup() will go away in a future version of Yum.\n',
                 Errors.YumFutureDeprecationWarning, stacklevel=2)
 
-        return self._getRepos(thisrepo)
+        return self._getRepos(thisrepo, True)
         
     
-    def _getRepos(self, thisrepo=None):
+    def _getRepos(self, thisrepo=None, doSetup = False):
         """grabs the repomd.xml for each enabled repository and sets up 
            the basics of the repository"""
         
         if not self._repos:
             self._repos = RepoStorage()
-        else:
+        elif not doSetup:
             return self._repos
         
         # Get our list of repo objects from conf, add them to the repos collection        




More information about the Yum-cvs-commits mailing list