summaryrefslogtreecommitdiffstats
path: root/iw/package_gui.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-06-19 19:23:31 +0000
committerMike Fulbright <msf@redhat.com>2002-06-19 19:23:31 +0000
commit3cf907c8aec6452ec6669e81702b22a2a1127a2a (patch)
treec64304b15462689211c839782f8b1353f11711ec /iw/package_gui.py
parent7f514c5eb0d5189c3e97acf75b261ca1c21c004d (diff)
downloadanaconda-3cf907c8aec6452ec6669e81702b22a2a1127a2a.tar.gz
anaconda-3cf907c8aec6452ec6669e81702b22a2a1127a2a.tar.xz
anaconda-3cf907c8aec6452ec6669e81702b22a2a1127a2a.zip
fix for bug #66402
Diffstat (limited to 'iw/package_gui.py')
-rw-r--r--iw/package_gui.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/iw/package_gui.py b/iw/package_gui.py
index 67aa41594..0c7f0527b 100644
--- a/iw/package_gui.py
+++ b/iw/package_gui.py
@@ -204,7 +204,8 @@ class IndividualPackageSelectionWindow (InstallWindow):
header = hdList.packages[key]
group = utf8(header[rpm.RPMTAG_GROUP])
- toplevel = string.split(group, '/')[0]
+ hier = string.split(group, '/')
+ toplevel = hier[0]
# make sure the dictionary item exists for group and toplevel
# note that if group already exists, toplevel must also exist
@@ -216,9 +217,9 @@ class IndividualPackageSelectionWindow (InstallWindow):
# don't display package if it is in the Base group
if not comps["Base"].includesPackage(header) or displayBase:
-# print "adding %s to %s and %s" % (header, group, toplevel)
groups[group].append(header)
- groups[toplevel].append(header)
+ if len(hier) > 1:
+ groups[toplevel].append(header)
groups["allpkgs"].append(header)
return groups