diff options
author | Jeremy Katz <katzj@redhat.com> | 2006-09-22 04:15:33 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2006-09-22 04:15:33 +0000 |
commit | 35762ba7a618578784c1374aa16e9af9fd1a5eec (patch) | |
tree | 020b6f4fa9619707bed70d62d106df085c4fc6ec | |
parent | 0e79389d91848b84f486f80ee1585705c1eca4c6 (diff) | |
download | anaconda-35762ba7a618578784c1374aa16e9af9fd1a5eec.tar.gz anaconda-35762ba7a618578784c1374aa16e9af9fd1a5eec.tar.xz anaconda-35762ba7a618578784c1374aa16e9af9fd1a5eec.zip |
2006-09-22 Jeremy Katz <katzj@redhat.com>
* textw/grpselect_text.py (GroupSelectionWindow.__call__): Give
indication of no optional packages (#204242)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | textw/grpselect_text.py | 7 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2006-09-22 Jeremy Katz <katzj@redhat.com> + + * textw/grpselect_text.py (GroupSelectionWindow.__call__): Give + indication of no optional packages (#204242) + 2006-09-21 Jeremy Katz <katzj@redhat.com> * backend.py (AnacondaBackend.doInitialSetup): Add missing self diff --git a/textw/grpselect_text.py b/textw/grpselect_text.py index 522291a25..85e1b1222 100644 --- a/textw/grpselect_text.py +++ b/textw/grpselect_text.py @@ -110,6 +110,12 @@ class GroupSelectionWindow: if result != "F2": break + pkgs = grp.default_packages.keys() + grp.optional_packages.keys() + if len(pkgs) == 0: + ButtonChoiceWindow(screen, _("Error"), + _("No optional packages to select")) + continue + # if current group is not selected then select it first newSelection = 0 grp = ct.getCurrent() @@ -123,7 +129,6 @@ class GroupSelectionWindow: gct = CheckboxTree(height = 8, scroll = 1) orig = {} - pkgs = grp.default_packages.keys() + grp.optional_packages.keys() for pkg in pkgs: orig[pkg] = self.ayum.isPackageInstalled(pkg) gct.append("%s" %(pkg,), pkg, orig[pkg]) |