[Yum-devel] [PATCH] kill the "No Groups Available" check. BZ 983010

Zdenek Pavlas zpavlas at redhat.com
Wed Jul 10 09:55:02 UTC 2013


With group_command=objects we access yb.comps on every "yum update".
If no repo with groups is enabled (perfectly legal IMO), this is fatal.
---
 yum/__init__.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/yum/__init__.py b/yum/__init__.py
index a48ec70..929d20d 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -939,9 +939,6 @@ class YumBase(depsolve.Depsolve):
             else:
                 repo.groups_added = True
 
-        if self._comps.compscount == 0:
-            raise Errors.GroupsError, _('No Groups Available in any repository')
-
         #  Note that this means that grp.installed is not usable, when using
         # groups as objects ... but that's GOOD.
         if self.conf.group_command != 'objects':
-- 
1.7.11.7



More information about the Yum-devel mailing list