In depgraph._show_missed_update(), don't show installed packages since we
authorZac Medico <zmedico@gentoo.org>
Sun, 12 Jul 2009 08:03:41 +0000 (08:03 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 12 Jul 2009 08:03:41 +0000 (08:03 -0000)
only want to show available updates.

svn path=/main/trunk/; revision=13819

pym/_emerge/depgraph.py

index 8297a360e8a3b72388627938314d4497e875a8a0..9066a59e479f88208c1745248d42fa4e2b168263 100644 (file)
@@ -275,6 +275,10 @@ class depgraph(object):
                missed_updates = {}
                for pkg, mask_reasons in \
                        self._dynamic_config._runtime_pkg_mask.iteritems():
+                       if pkg.installed:
+                               # Exclude installed here since we only
+                               # want to show available updates.
+                               continue
                        if pkg.slot_atom in missed_updates:
                                other_pkg, parent_atoms = missed_updates[pkg.slot_atom]
                                if other_pkg > pkg: