summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-11-17 20:44:26 +0000
committerErik Troan <ewt@redhat.com>2000-11-17 20:44:26 +0000
commit4e3aea25dc980dba6c5c0c66cc05ee879f87d909 (patch)
tree7f79fe343491ea9e38fca93425a5e9ad904e68a5 /installclass.py
parent474aa9df9eeea3f5d915aaa96edeb9e0eda444f5 (diff)
downloadanaconda-4e3aea25dc980dba6c5c0c66cc05ee879f87d909.tar.gz
anaconda-4e3aea25dc980dba6c5c0c66cc05ee879f87d909.tar.xz
anaconda-4e3aea25dc980dba6c5c0c66cc05ee879f87d909.zip
added findOptionalGroup()
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 = {}