summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-02-14 03:00:04 +0000
committerMatt Wilson <msw@redhat.com>2001-02-14 03:00:04 +0000
commit2228d284d18ca68ffab89758d5538927c263e5f8 (patch)
tree9d9fea090e6acb5e7b44a7dbc7db9d2a33107bfc /todo.py
parent2037b8a5a458189a35165ba7ec1ca30fa6cedc65 (diff)
downloadanaconda-2228d284d18ca68ffab89758d5538927c263e5f8.tar.gz
anaconda-2228d284d18ca68ffab89758d5538927c263e5f8.tar.xz
anaconda-2228d284d18ca68ffab89758d5538927c263e5f8.zip
if the installclass has no group/package list, set things up to be default (#26263)
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/todo.py b/todo.py
index 00aca6017..0972aea88 100644
--- a/todo.py
+++ b/todo.py
@@ -734,12 +734,20 @@ class ToDo:
# don't load it just for this
if not self.comps: return
+
group = self.instClass.getGroups()
optional = self.instClass.getOptionalGroups()
packages = self.instClass.getPackages()
- if (group == None and packages == None): return 0
- for n in self.comps.keys():
- self.comps[n].unselect()
+ print group,optional,packages
+ for comp in self.comps:
+ comp.unselect()
+
+ if group == None and packages == None:
+ # this comp has no special groups, set up the defaults
+ # and exit
+ for comp in self.comps:
+ comp.setDefaultSelection()
+ return
self.comps['Base'].select()
if group: