depgraph: verify "missed updates"
authorZac Medico <zmedico@gentoo.org>
Thu, 29 Sep 2011 01:10:06 +0000 (18:10 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 29 Sep 2011 01:10:58 +0000 (18:10 -0700)
Since the change involving slot conflict parent atoms in commit
6cea2091526659521d35be6c8dc7733f69f1a760, we want to check to make
sure we don't display any false positives in the "missed updates".

pym/_emerge/depgraph.py

index f9f49545b0d3eee582d7cd2537b61b69a6f21d8c..b58b76f15c069a355ad89115df1a158c12bccf35 100644 (file)
@@ -591,6 +591,10 @@ class depgraph(object):
                                # Exclude installed here since we only
                                # want to show available updates.
                                continue
+                       chosen_pkg, existing_node = \
+                               self._select_package(pkg.root, pkg.slot_atom)
+                       if chosen_pkg >= pkg:
+                               continue
                        k = (pkg.root, pkg.slot_atom)
                        if k in missed_updates:
                                other_pkg, mask_type, parent_atoms = missed_updates[k]