summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-02 00:23:59 +0000
committerMatt Wilson <msw@redhat.com>1999-09-02 00:23:59 +0000
commit65d275a600f18e726773f42ca55a65e1683f0137 (patch)
tree974abb5e390d0db8bfb52c690b1b71b08030edd5 /todo.py
parenta88c61a538a78206c5293f86d884beac6113344c (diff)
downloadanaconda-65d275a600f18e726773f42ca55a65e1683f0137.tar.gz
anaconda-65d275a600f18e726773f42ca55a65e1683f0137.tar.xz
anaconda-65d275a600f18e726773f42ca55a65e1683f0137.zip
turn on the x server
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py18
1 files changed, 15 insertions, 3 deletions
diff --git a/todo.py b/todo.py
index 1c4e895db..3594c569d 100644
--- a/todo.py
+++ b/todo.py
@@ -657,13 +657,25 @@ class ToDo:
# don't load it just for this
if (not self.comps): return
group = self.instClass.getGroups()
- if (group == None): return 0
+ packages = self.instClass.getGroups()
+ if (group == None and packages == None): return 0
for n in self.comps.keys():
self.comps[n].unselect(0)
self.comps['Base'].select(1)
- for n in group:
- self.comps[n].select(1)
+ if group:
+ for n in group:
+ self.comps[n].select(1)
+
+ if packages:
+ for n in packages:
+ self.hdlist[n].selected = 1
+
+ if self.x.server:
+ self.hdlist['XFree86-' + self.x.server].selected = 1
+
+ def selectPackage(self, package):
+ self.hdlist[package].selected = 1
def writeNetworkConfig (self):
# /etc/sysconfig/network-scripts/ifcfg-*