diff options
author | Matt Wilson <msw@redhat.com> | 2000-05-11 20:42:38 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-05-11 20:42:38 +0000 |
commit | 751d75f05a59d79e130397adb5150c9ee3861313 (patch) | |
tree | 7b3d2d78896ccc3acdba565e841da04b87e0c38a /textw | |
parent | 0b4190b75187c23e2768daa913b22a836b60b76d (diff) | |
download | anaconda-751d75f05a59d79e130397adb5150c9ee3861313.tar.gz anaconda-751d75f05a59d79e130397adb5150c9ee3861313.tar.xz anaconda-751d75f05a59d79e130397adb5150c9ee3861313.zip |
use showgroups field from instclass
Diffstat (limited to 'textw')
-rw-r--r-- | textw/packages_text.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/textw/packages_text.py b/textw/packages_text.py index 91383c6e4..bff012f3f 100644 --- a/textw/packages_text.py +++ b/textw/packages_text.py @@ -33,8 +33,19 @@ class PackageGroupWindow: origSelection = todo.comps.getSelectionState() ct = CheckboxTree(height = 8, scroll = 1) + klass = todo.getClass () for comp in todo.comps: - if not comp.hidden: + show = 0 + if klass.showgroups: + try: + klass.showgroups.index (comp.name) + show = 1 + except ValueError: + # comp not in show list + pass + else: + show = not comp.hidden + if show: ct.append(_(comp.name), comp, comp.selected) cb = Checkbox (_("Select individual packages"), individual.get ()) |