summaryrefslogtreecommitdiffstats
path: root/textw/task_text.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2008-09-11 15:32:28 -0400
committerJeremy Katz <katzj@redhat.com>2008-09-29 10:14:35 -0400
commitbdd1c56bbcaf250ab6c8f8508b2cc16898601ae0 (patch)
tree1c277d6c0b3ba7de70db263ca865dd789fac9e89 /textw/task_text.py
parent84e218b892fdc4fd92ec3b57348fa729de4ebd95 (diff)
downloadanaconda-bdd1c56bbcaf250ab6c8f8508b2cc16898601ae0.tar.gz
anaconda-bdd1c56bbcaf250ab6c8f8508b2cc16898601ae0.tar.xz
anaconda-bdd1c56bbcaf250ab6c8f8508b2cc16898601ae0.zip
Select packages after repos are set up (#457583)
Set up which packages are actually selected after you've done your repo configuration so that we don't have packages set to be installed from repos which no longer exist. To do this, we switch to using whether or not the group is default rather than selecting/deselecting groups in task selection. Then, move the base package selecting to be later
Diffstat (limited to 'textw/task_text.py')
-rw-r--r--textw/task_text.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/textw/task_text.py b/textw/task_text.py
index 470053df6..9a2c34f53 100644
--- a/textw/task_text.py
+++ b/textw/task_text.py
@@ -30,7 +30,7 @@ class TaskWindow:
rc = False
for gid in lst:
g = self.backend.ayum.comps.return_group(gid)
- if g and not g.selected:
+ if g and not g.default:
return False
elif g:
rc = True
@@ -89,9 +89,11 @@ class TaskWindow:
sel = ct.getSelection()
for (txt, grps) in tasks:
if txt in sel:
- map(self.backend.selectGroup, grps)
+ map(lambda g: setattr(self.backend.ayum.comps.return_group(g),
+ "default", True), grps)
else:
- map(self.backend.deselectGroup, grps)
+ map(lambda g: setattr(self.backend.ayum.comps.return_group(g),
+ "default", False), grps)
screen.popWindow()
return INSTALL_OK