diff options
author | Erik Troan <ewt@redhat.com> | 2000-11-17 20:47:12 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-11-17 20:47:12 +0000 |
commit | 17654eca4d85bbe83d2bb7402f6e3490d47b3077 (patch) | |
tree | 2918fce60bfc1b0dc15247518b0aa5f15be07db8 /iw/package_gui.py | |
parent | 6bf89a0f7bf92317d2c4855daffa99a85dcc173a (diff) | |
download | anaconda-17654eca4d85bbe83d2bb7402f6e3490d47b3077.tar.gz anaconda-17654eca4d85bbe83d2bb7402f6e3490d47b3077.tar.xz anaconda-17654eca4d85bbe83d2bb7402f6e3490d47b3077.zip |
changed the way optional groups are chosen
Diffstat (limited to 'iw/package_gui.py')
-rw-r--r-- | iw/package_gui.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/iw/package_gui.py b/iw/package_gui.py index 4fb248099..603732310 100644 --- a/iw/package_gui.py +++ b/iw/package_gui.py @@ -589,10 +589,10 @@ class PackageSelectionWindow (InstallWindow): def getScreen (self): # threads_leave () try: - threads_leave () - self.todo.getHeaderList () - self.todo.getCompsList() - threads_enter () + threads_leave () + self.todo.getHeaderList () + self.todo.getCompsList() + threads_enter () except: print "Cannot read either header or comps or both" @@ -621,17 +621,19 @@ class PackageSelectionWindow (InstallWindow): self.checkButtons = [] klass = self.todo.getClass () + showList = klass.getOptionalGroups() for comp in self.todo.comps: show = 0 - if klass.showgroups: + if showList: try: - klass.showgroups.index (comp.name) - show = 1 + if klass.findOptionalGroup (comp.name): + show = 1 except ValueError: # comp not in show list pass else: show = not comp.hidden + if show: pixname = string.replace (comp.name, ' ', '-') pixname = string.replace (pixname, '/', '-') |