summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-06-09 11:34:35 -0400
committerChris Lumens <clumens@redhat.com>2008-06-09 11:34:35 -0400
commit9aa6eb4d890539c18e2e2fcf61c1583d71bed05f (patch)
tree134e26ec61be8cddd8ec25ff4eb55e6c53a41313 /iw
parent242efcb51b0d3897e258a544241e5efec7764ccd (diff)
downloadanaconda-9aa6eb4d890539c18e2e2fcf61c1583d71bed05f.tar.gz
anaconda-9aa6eb4d890539c18e2e2fcf61c1583d71bed05f.tar.xz
anaconda-9aa6eb4d890539c18e2e2fcf61c1583d71bed05f.zip
We can't use tsInfo to check for obsoletes since it's not populated yet.
Diffstat (limited to 'iw')
-rw-r--r--iw/GroupSelector.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/iw/GroupSelector.py b/iw/GroupSelector.py
index 14352f342..d12ba8bae 100644
--- a/iw/GroupSelector.py
+++ b/iw/GroupSelector.py
@@ -236,8 +236,11 @@ class OptionalPackageSelector:
po = self.__getPackageObject(pkg)
if not po:
continue
- if self.ayum.tsInfo.isObsoleted(pkgtup=(po.name, po.arch, po.epoch, po.version, po.release)):
+
+ # Don't display obsolete packages in the UI
+ if self.ayum.up.checkForObsolete([po.pkgtup]).has_key(po.pkgtup):
continue
+
self.pkgstore.append([self.ayum.isPackageInstalled(pkg), listEntryString(po), po])
def run(self):