[yum-cvs] yum/yum __init__.py,1.325,1.326

Jeremy Katz katzj at linux.duke.edu
Mon May 14 18:40:00 UTC 2007


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

Modified Files:
	__init__.py 
Log Message:
don't cause repos to be set up unnecessarily (rh#238940)


Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/__init__.py,v
retrieving revision 1.325
retrieving revision 1.326
diff -u -r1.325 -r1.326
--- __init__.py	26 Apr 2007 14:10:01 -0000	1.325
+++ __init__.py	14 May 2007 18:39:58 -0000	1.326
@@ -439,8 +439,9 @@
         if val is None:
             # if we unset the comps object, we need to undo which repos have
             # been added to the group file as well
-            for repo in self.repos.listGroupsEnabled():
-                repo.groups_added = False
+            if self._repos:
+                for repo in self._repos.listGroupsEnabled():
+                    repo.groups_added = False
         self._comps = val
     
     def _getGroups(self):




More information about the Yum-cvs-commits mailing list