[yum-cvs] yum cli.py,1.256,1.257

Seth Vidal skvidal at linux.duke.edu
Thu Feb 22 03:47:25 UTC 2007


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

Modified Files:
	cli.py 
Log Message:

yum-with-properties patch. This makes yum use properties for most of the
base attributes of YumBase so that setup is less necessary for default
operation. This is half way through the changes.


Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.256
retrieving revision 1.257
diff -u -r1.256 -r1.257
--- cli.py	16 Feb 2007 07:58:29 -0000	1.256
+++ cli.py	22 Feb 2007 03:47:22 -0000	1.257
@@ -91,10 +91,11 @@
         """grabs the repomd.xml for each enabled repository 
            and sets up the basics of the repository"""
         
-        if self.pkgSack and thisrepo is None:
+        if self._repos and thisrepo is None:
             self.verbose_logger.log(yum.logginglevels.DEBUG_4,
                 'skipping reposetup, pkgsack exists')
-            return
+            return self._repos
+            
       
         self.verbose_logger.log(yum.logginglevels.INFO_2,
             'Setting up repositories')
@@ -107,7 +108,8 @@
             self.verbose_logger.log(yum.logginglevels.INFO_2,
                 'Reading repository metadata in from local files')
             self.doSackSetup(thisrepo=thisrepo)
-    
+        
+        return self._repos
         
     def getOptionsConfig(self, args):
         """parses command line arguments, takes cli args:




More information about the Yum-cvs-commits mailing list