[PATCH 4/6] Add a local method for exposing group visibility from the comps file.
Bill Nottingham
notting at redhat.com
Wed Jul 18 19:56:23 UTC 2012
---
pyanaconda/packaging/yumpayload.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 3bd85e8..7d8eef4 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -839,6 +839,18 @@ reposdir=%s
return (group.ui_name, group.ui_description)
+ def _isGroupVisible(self, groupid):
+ groups = self._yumGroups
+ if not groups:
+ return False
+
+ with _yum_lock:
+ if not groups.has_group(groupid):
+ return False
+
+ group = groups.return_group(groupid)
+ return group.user_visible
+
def _selectYumGroup(self, groupid, default=True, optional=False):
# select the group in comps
pkg_types = ['mandatory']
--
1.7.10.4
More information about the anaconda-patches
mailing list