[yum-cvs] yum cli.py,1.264,1.265

Jeremy Katz katzj at linux.duke.edu
Thu Apr 26 01:10:20 UTC 2007


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

Modified Files:
	cli.py 
Log Message:
set up progress callbacks before we od the repo setup; we've removed the
explicit calls to doRepoSetup() and therefore need to ensure that we do
the callback setup before we implicitly use doRepoSetup (and thus, call the
postreposetup hook)  (rh#236152)


Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.264
retrieving revision 1.265
diff -u -r1.264 -r1.265
--- cli.py	25 Apr 2007 22:51:49 -0000	1.264
+++ cli.py	26 Apr 2007 01:10:18 -0000	1.265
@@ -1126,7 +1126,10 @@
                     self.logger.critical(e)
                     self.base.usage()
                     sys.exit(1)
-               
+
+            # setup the progress bars/callbacks
+            self.base.setupProgessCallbacks()
+                    
             # Process repo enables and disables in order
             for opt, repoexp in opts.repos:
                 try:
@@ -1138,7 +1141,7 @@
                     self.logger.critical(e)
                     self.base.usage()
                     sys.exit(1)
-                    
+
             # make sure the added repos are setup.        
             if len(opts.repos) > 0:
                 self.base._getRepos(doSetup=True)
@@ -1148,9 +1151,6 @@
             self.base.usage()
             sys.exit(1)
          
-        # setup the progress bars/callbacks
-        self.base.setupProgessCallbacks()
-        
         return opts, cmds
 
     def getRoot(self,opts):




More information about the Yum-cvs-commits mailing list