[yum-cvs] yum cli.py,1.260,1.261

Tim Lauridsen timlau at linux.duke.edu
Fri Apr 6 13:06:06 UTC 2007


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

Modified Files:
	cli.py 
Log Message:
Make sure that repo added with --enablerepo is setup.
rhbz #230870,#233573.

Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.260
retrieving revision 1.261
diff -u -r1.260 -r1.261
--- cli.py	4 Apr 2007 12:17:43 -0000	1.260
+++ cli.py	6 Apr 2007 13:06:03 -0000	1.261
@@ -1139,6 +1139,10 @@
                     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)
                             
         except ValueError, e:
             self.logger.critical(_('Options Error: %s'), e)




More information about the Yum-cvs-commits mailing list