summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/installclass.py b/installclass.py
index 5bbe9a9c3..acd474951 100644
--- a/installclass.py
+++ b/installclass.py
@@ -172,6 +172,16 @@ class BaseInstallClass:
def getOptionalGroups(self):
return self.showgroups
+ def findOptionalGroup(self, needle):
+ for g in self.showgroups:
+ name = g
+ if type((1,)) == type(g):
+ (on, name) = g
+ if name == needle:
+ return g
+
+ return None
+
# This is a list of packages -- it is combined with the group list
def setPackages(self, packages):
hash = {}