summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
Diffstat (limited to 'textw')
-rw-r--r--textw/packages_text.py13
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 ())